mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
adding multiple hooks supports for events and loop
This commit is contained in:
@@ -38,8 +38,11 @@ namespace mlx
|
||||
|
||||
m_in.FetchInputs();
|
||||
|
||||
if(f_loop_hook)
|
||||
f_loop_hook(p_param);
|
||||
for(const auto& hook : m_hooks)
|
||||
{
|
||||
if(hook.fn)
|
||||
hook.fn(hook.param);
|
||||
}
|
||||
|
||||
for(auto& gs : m_graphics)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user