1#ifndef JOYSTICK_MANAGER_HH
2#define JOYSTICK_MANAGER_HH
14class CommandController;
28 void add(
int deviceIndex);
29 void remove(
int instanceId);
41 [[nodiscard]]
size_t getFreeSlot();
47 SDL_Joystick* joystick =
nullptr;
49 std::unique_ptr<IntegerSetting> deadZoneSetting;
51 std::vector<Info> infos;
A Setting with an integer value.
void add(int deviceIndex)
IntegerSetting * getJoyDeadZoneSetting(JoystickId joyId) const
std::optional< unsigned > getNumButtons(JoystickId joyId) const
void remove(int instanceId)
std::vector< JoystickId > getConnectedJoysticks() const
std::optional< JoystickId > translateSdlInstanceId(SDL_Event &evt) const
std::string getDisplayName(JoystickId joyId) const
This file implemented 3 utility functions: