Classes | Public Member Functions | List of all members
openmsx::JoystickManager Class Reference

#include <JoystickManager.hh>

Public Member Functions

 JoystickManager (CommandController &commandController_)
 ~JoystickManager ()
void add (int deviceIndex)
void remove (int instanceId)
std::vector< JoystickIdgetConnectedJoysticks () const
IntegerSettinggetJoyDeadZoneSetting (JoystickId joyId) const
std::string getDisplayName (JoystickId joyId) const
std::optional< unsigned > getNumButtons (JoystickId joyId) const
std::optional< JoystickIdtranslateSdlInstanceId (SDL_Event &evt) const

Detailed Description

Definition at line 17 of file JoystickManager.hh.

Constructor & Destructor Documentation

◆ JoystickManager()

openmsx::JoystickManager::JoystickManager ( CommandController commandController_)

Definition at line 11 of file

◆ ~JoystickManager()

openmsx::JoystickManager::~JoystickManager ( )

Definition at line 22 of file

Member Function Documentation

◆ add()

void openmsx::JoystickManager::add ( int  deviceIndex)

Definition at line 44 of file

◆ getConnectedJoysticks()

std::vector< JoystickId > openmsx::JoystickManager::getConnectedJoysticks ( ) const

Definition at line 62 of file

References xrange().

◆ getDisplayName()

std::string openmsx::JoystickManager::getDisplayName ( JoystickId  joyId) const

Definition at line 79 of file

References openmsx::JoystickId::raw().

◆ getJoyDeadZoneSetting()

IntegerSetting * openmsx::JoystickManager::getJoyDeadZoneSetting ( JoystickId  joyId) const

Definition at line 73 of file

References id, and openmsx::JoystickId::raw().

◆ getNumButtons()

std::optional< unsigned > openmsx::JoystickManager::getNumButtons ( JoystickId  joyId) const

◆ remove()

void openmsx::JoystickManager::remove ( int  instanceId)

Definition at line 52 of file

References ranges::find().

◆ translateSdlInstanceId()

std::optional< JoystickId > openmsx::JoystickManager::translateSdlInstanceId ( SDL_Event &  evt) const

Definition at line 94 of file

References ranges::find().

The documentation for this class was generated from the following files: