mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
adding bindings
This commit is contained in:
@@ -224,6 +224,11 @@ namespace mlx
|
||||
return y;
|
||||
}
|
||||
|
||||
void SDLManager::SetInputBinding(std::function<void(SDL_Event*)> functor)
|
||||
{
|
||||
m_binding_hook = std::move(functor);
|
||||
}
|
||||
|
||||
void SDLManager::InputsFetcher(std::function<void(mlx_event_type, int, int)> functor)
|
||||
{
|
||||
SDL_Event event;
|
||||
@@ -269,6 +274,8 @@ namespace mlx
|
||||
|
||||
default: break;
|
||||
}
|
||||
|
||||
m_binding_hook(&event);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user