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