17 #ifndef HEADER_SUPERTUX_CONTROL_JOYSTICK_CONFIG_HPP 18 #define HEADER_SUPERTUX_CONTROL_JOYSTICK_CONFIG_HPP 23 #include "control/controller.hpp" 35 using JoystickID = SDL_JoystickID;
40 void print_joystick_mappings()
const;
42 int reversemap_joybutton(Control c)
const;
43 int reversemap_joyaxis(Control c)
const;
44 int reversemap_joyhat(Control c)
const;
46 void unbind_joystick_control(Control c);
48 void bind_joybutton(JoystickID joy_id,
int button, Control c);
49 void bind_joyaxis(JoystickID joy_id,
int axis, Control c);
50 void bind_joyhat(JoystickID joy_id,
int dir, Control c);
53 void write(
Writer& writer);
57 bool m_jump_with_up_joy;
58 bool m_use_game_controller;
60 std::map<std::pair<JoystickID, int>, Control> m_joy_button_map;
61 std::map<std::pair<JoystickID, int>, Control> m_joy_axis_map;
62 std::map<std::pair<JoystickID, int>, Control> m_joy_hat_map;
Manages Joysticks.
Definition: joystick_manager.hpp:36
Definition: joystick_config.hpp:28
Definition: reader_mapping.hpp:32
Definition: writer.cpp:23