Manages input bindings and dispatches input events to registered listeners. Provides a singleton interface for global access.
static InputManager& Instance();
Returns the input manager instance.
void CreateNewBooleanKeyBinding(IActionListener* listener, std::string name, SDL_Keycode key);
Creates a new boolean key binding for a listener.
void CreateNewBooleanBtnBinding(IActionListener* listener, std::string name, Uint8 mouseButton);
Creates a new boolean mouse button binding for a listener.
void CreateNewAxis2DBinding(IActionListener* listener, std::string name, SDL_Keycode positiveX, SDL_Keycode negativeX, SDL_Keycode positiveY, SDL_Keycode negativeY);
Creates a new 2D axis binding for a listener.
void Update();
Updates the input actions every frame.
void Unload();
Unloads every input actons registered.