18 #ifndef HEADER_SUPERTUX_CONTROL_JOYSTICK_MANAGER_HPP 19 #define HEADER_SUPERTUX_CONTROL_JOYSTICK_MANAGER_HPP 24 #include "control/controller.hpp" 37 void process_hat_event(
const SDL_JoyHatEvent& jhat);
38 void process_axis_event(
const SDL_JoyAxisEvent& jaxis);
39 void process_button_event(
const SDL_JoyButtonEvent& jbutton);
41 void bind_next_event_to(Control
id);
43 void set_joy_controls(Control
id,
bool value);
45 void on_joystick_added(
int joystick_index);
46 void on_joystick_removed(
int instance_id);
48 int get_num_joysticks()
const {
return static_cast<int>(joysticks.size()); }
65 int wait_for_joystick;
67 std::vector<SDL_Joystick*> joysticks;
Definition: joystick_manager.hpp:29
Definition: joystick_config.hpp:28
Definition: keyboard_manager.hpp:30