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