29#ifndef NOMLIB_SYSTEM_GAME_CONTROLLER_EVENT_HANDLER_HPP
30#define NOMLIB_SYSTEM_GAME_CONTROLLER_EVENT_HANDLER_HPP
35#include "nomlib/config.hpp"
36#include "nomlib/system/GameController.hpp"
44class GameControllerEventHandler
47 GameControllerEventHandler();
48 ~GameControllerEventHandler();
80 typedef std::map<JoystickID, std::unique_ptr<GameController>> joysticks;
nom::size_type num_joysticks() const
Get the number of accessible joysticks.
GameController * add_joystick(JoystickIndex device_index)
Append a game controller to the active devices pool.
bool remove_joystick(JoystickID dev_id)
Remove a connected joystick from the joystick event pool.
void remove_joysticks()
Remove all joystick connection IDs from the joystick event pool.
joysticks joysticks_
Active game controllers event pool.
bool joystick_exists(JoystickID dev_id) const
Query for the existence of an attached joystick.
SDL2 game controller interface.