![]() |
nomlib
|
Internal management of hot-pluggable joystick devices handling. More...
#include <GameControllerEventHandler.hpp>
Public Member Functions | |
| nom::size_type | num_joysticks () const |
| Get the number of accessible joysticks. | |
| GameController * | joystick (JoystickID dev_id) const |
| bool | joystick_exists (JoystickID dev_id) const |
| Query for the existence of an attached joystick. | |
| 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. | |
Private Types | |
| typedef std::map< JoystickID, std::unique_ptr< GameController > > | joysticks |
Private Attributes | |
| joysticks | joysticks_ |
| Active game controllers event pool. | |
Internal management of hot-pluggable joystick devices handling.
Definition at line 44 of file GameControllerEventHandler.hpp.
|
private |
Definition at line 80 of file GameControllerEventHandler.hpp.
| GameController * nom::GameControllerEventHandler::add_joystick | ( | JoystickIndex | device_index | ) |
Append a game controller to the active devices pool.
| bool nom::GameControllerEventHandler::joystick_exists | ( | JoystickID | dev_id | ) | const |
Query for the existence of an attached joystick.
| bool nom::GameControllerEventHandler::remove_joystick | ( | JoystickID | dev_id | ) |
Remove a connected joystick from the joystick event pool.
| void nom::GameControllerEventHandler::remove_joysticks | ( | ) |
Remove all joystick connection IDs from the joystick event pool.
|
private |
Active game controllers event pool.
Definition at line 90 of file GameControllerEventHandler.hpp.