openMSX
|
#include <JoystickManager.hh>
Public Member Functions | |
JoystickManager (CommandController &commandController_) | |
~JoystickManager () | |
void | add (int deviceIndex) |
void | remove (int instanceId) |
std::vector< JoystickId > | getConnectedJoysticks () const |
IntegerSetting * | getJoyDeadZoneSetting (JoystickId joyId) const |
std::string | getDisplayName (JoystickId joyId) const |
std::optional< unsigned > | getNumButtons (JoystickId joyId) const |
std::optional< JoystickId > | translateSdlInstanceId (SDL_Event &evt) const |
Definition at line 17 of file JoystickManager.hh.
|
explicit |
Definition at line 11 of file JoystickManager.cc.
openmsx::JoystickManager::~JoystickManager | ( | ) |
Definition at line 22 of file JoystickManager.cc.
void openmsx::JoystickManager::add | ( | int | deviceIndex | ) |
Definition at line 44 of file JoystickManager.cc.
std::vector< JoystickId > openmsx::JoystickManager::getConnectedJoysticks | ( | ) | const |
Definition at line 62 of file JoystickManager.cc.
References xrange().
std::string openmsx::JoystickManager::getDisplayName | ( | JoystickId | joyId | ) | const |
Definition at line 79 of file JoystickManager.cc.
References openmsx::JoystickId::raw().
IntegerSetting * openmsx::JoystickManager::getJoyDeadZoneSetting | ( | JoystickId | joyId | ) | const |
Definition at line 73 of file JoystickManager.cc.
References id, and openmsx::JoystickId::raw().
std::optional< unsigned > openmsx::JoystickManager::getNumButtons | ( | JoystickId | joyId | ) | const |
Definition at line 86 of file JoystickManager.cc.
References openmsx::JoystickId::raw().
Referenced by openmsx::JoyMega::getDefaultConfig(), and openmsx::MSXJoystick::getDefaultConfig().
void openmsx::JoystickManager::remove | ( | int | instanceId | ) |
Definition at line 52 of file JoystickManager.cc.
References ranges::find().
std::optional< JoystickId > openmsx::JoystickManager::translateSdlInstanceId | ( | SDL_Event & | evt | ) | const |
Definition at line 94 of file JoystickManager.cc.
References ranges::find().