RigsofRods
Soft-body Physics Simulation
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
RoR::InputEngine Class Reference

Manages controller configuration, evaluates input events. More...

#include <InputEngine.h>

Public Types

typedef std::vector< event_trigger_tTriggerVec
 
typedef std::map< int, TriggerVecEventMap
 

Public Member Functions

 InputEngine ()
 
 ~InputEngine ()
 
Setup
void SetKeyboardListener (OIS::KeyListener *obj)
 
OIS::Keyboard * GetOisKeyboard ()
 
void SetMouseListener (OIS::MouseListener *obj)
 
void SetJoystickListener (OIS::JoyStickListener *obj)
 
void destroy ()
 
Input processing
void Capture ()
 
void updateKeyBounces (float dt)
 
void processMouseMotionEvent (const OIS::MouseEvent &arg)
 
void processMousePressEvent (const OIS::MouseEvent &arg, OIS::MouseButtonID _id)
 
void processMouseReleaseEvent (const OIS::MouseEvent &arg, OIS::MouseButtonID _id)
 
void ProcessKeyPress (const OIS::KeyEvent &arg)
 
void ProcessKeyRelease (const OIS::KeyEvent &arg)
 
void ProcessJoystickEvent (const OIS::JoyStickEvent &arg)
 
void resetKeysAndMouseButtons ()
 
void setEventSimulatedValue (events eventID, float value)
 
void setEventStatusSupressed (events eventID, bool supress)
 
Event info
Ogre::String getKeyForCommand (int eventID)
 
Ogre::String getModifierKeyName (OIS::KeyCode key)
 
Ogre::String getDeviceName (event_trigger_t const &evt)
 
Ogre::String getEventCommand (int eventID)
 
std::string getEventCommandTrimmed (int eventID)
 Omits 'EXPL' modifier. More...
 
Ogre::String getTriggerCommand (event_trigger_t const &evt)
 
Ogre::String getEventConfig (int eventID)
 
Ogre::String getEventDefaultConfig (int eventID)
 
bool isEventDefined (int eventID)
 
int getKeboardKeyForCommand (int eventID)
 Returns -1 if not Keyboard. More...
 
int getJoyComponentCount (OIS::ComponentType type, int joystickNumber)
 
std::string getJoyVendor (int joystickNumber)
 
int getNumJoysticks ()
 
EventMapgetEvents ()
 
Event config files
bool loadConfigFile (int deviceID=-1)
 Loads config file specific to a device and OS (or default config if deviceID is -1). More...
 
bool saveConfigFile (int deviceID=-1)
 Wites events with matching deviceID to loaded file with matching deviceID (or default file if deviceID is -1). More...
 
std::string const & getLoadedConfigFile (int deviceID=-1)
 Returns filename from loadConfigFile() call. More...
 
bool processLine (const char *line, int deviceID=-1)
 
bool updateConfigline (event_trigger_t *t)
 
Event management
void addEvent (int eventID, event_trigger_t &t)
 Registers new trigger for this event. More...
 
void addEvent (int eventID)
 Registers new event without trigger. More...
 
void addEventDefault (int eventID, int deviceID=-1)
 Adds a new trigger with builtin value for this event. More...
 
void updateEvent (int eventID, const event_trigger_t &t)
 
void eraseEvent (int eventID, const event_trigger_t *t)
 
void clearEvents (int eventID)
 Clears all bindings for given event. More...
 
void clearEventsByDevice (int deviceID)
 Clears all bindings with given deviceID (-1 is no exception). More...
 
void clearAllEvents ()
 Purges all configured bindings. More...
 
Event states
float getEventValue (int eventID, bool pure=false, InputSourceType valueSource=InputSourceType::IST_ANY)
 valueSource: IST_ANY=digital and analog devices, IST_DIGITAL=only digital, IST_ANALOG=only analog More...
 
bool getEventBoolValue (int eventID)
 
bool isEventAnalog (int eventID)
 
bool getEventBoolValueBounce (int eventID, float time=0.2f)
 
float getEventBounceTime (int eventID)
 
bool isKeyDownEffective (OIS::KeyCode mod)
 Reads RoR internal buffer. More...
 
bool isKeyDownValueBounce (OIS::KeyCode mod, float time=0.2f)
 
Direct input device states
OIS::JoyStickState * getCurrentJoyState (int joystickNumber)
 
OIS::MouseState getMouseState ()
 
bool isKeyDown (OIS::KeyCode mod)
 Asks OIS directly. More...
 
int getCurrentKeyCombo (Ogre::String *combo)
 Returns number of non-modifier keys pressed (or modifier count as negative number). More...
 
int getCurrentJoyButton (int &joystickNumber, int &button)
 
int getCurrentPovValue (int &joystickNumber, int &pov, int &povdir)
 
Ogre::Vector2 getMouseNormalizedScreenPos ()
 Returns XY position in range from 0 (top/left) to 1 (bottom/right) More...
 
Misc
void windowResized (Ogre::RenderWindow *rw)
 
OIS::ForceFeedback * getForceFeedbackDevice ()
 

Static Public Attributes

static const std::string DEFAULT_MAPFILE = "input.map"
 = "input.map"; More...
 
static const int DEFAULT_MAPFILE_DEVICEID = -1
 virtual device ID for "input.map" entries More...
 
static const int BUILTIN_MAPPING_DEVICEID = -2
 virtual device ID for builtin defaults More...
 

Protected Member Functions

bool loadMapping (Ogre::String fileName, int deviceID)
 
bool saveMapping (Ogre::String fileName, int deviceID)
 
void completeMissingEvents ()
 
void initAllKeys ()
 
void setup ()
 
float deadZone (float axis, float dz)
 
float axisLinearity (float axisValue, float linearity)
 
float logval (float val)
 
std::string getEventGroup (Ogre::String eventName)
 
std::string composeEventConfigString (event_trigger_t const &trig)
 
std::string composeEventCommandString (event_trigger_t const &trig)
 
event_trigger_t newEvent ()
 

Protected Attributes

OIS::InputManager * mInputManager
 
OIS::Mouse * mMouse
 
OIS::Keyboard * mKeyboard
 
OIS::JoyStick * mJoy [MAX_JOYSTICKS]
 
int free_joysticks
 Number of detected game controllers. More...
 
OIS::ForceFeedback * mForceFeedback
 
int uniqueCounter
 
std::map< int, bool > keyState
 
OIS::JoyStickState joyState [MAX_JOYSTICKS]
 
OIS::MouseState mouseState
 
std::map< int, std::vector< event_trigger_t > > events
 
std::map< int, float > event_values_simulated
 
std::map< int, float > event_times
 
std::map< int, bool > event_states_supressed
 
std::string m_loaded_configs [MAX_JOYSTICKS]
 
std::map< std::string, OIS::KeyCode > allkeys
 
std::map< std::string, OIS::KeyCode >::iterator allit
 
size_t m_oisworkaround_frames_since_reset = 0u
 
size_t m_oisworkaround_lmbdowns_since_reset = 0u
 

Event utils

std::string getKeyNameForKeyCode (OIS::KeyCode keycode)
 
static const char * getEventTypeName (eventtypes type)
 Enum to string helper. More...
 
static int resolveEventName (Ogre::String eventName)
 
static Ogre::String eventIDToName (int eventID)
 
static Ogre::String eventIDToDescription (int eventID)
 

Detailed Description

Manages controller configuration, evaluates input events.

Definition at line 458 of file InputEngine.h.

Member Typedef Documentation

◆ EventMap

typedef std::map<int, TriggerVec> RoR::InputEngine::EventMap

Definition at line 462 of file InputEngine.h.

◆ TriggerVec

Definition at line 461 of file InputEngine.h.

Constructor & Destructor Documentation

◆ InputEngine()

InputEngine::InputEngine ( )

Definition at line 416 of file InputEngine.cpp.

+ Here is the call graph for this function:

◆ ~InputEngine()

InputEngine::~InputEngine ( )

Definition at line 434 of file InputEngine.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addEvent() [1/2]

void InputEngine::addEvent ( int  eventID)

Registers new event without trigger.

Definition at line 1246 of file InputEngine.cpp.

◆ addEvent() [2/2]

void InputEngine::addEvent ( int  eventID,
event_trigger_t t 
)

Registers new trigger for this event.

Definition at line 1240 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ addEventDefault()

void InputEngine::addEventDefault ( int  eventID,
int  deviceID = -1 
)

Adds a new trigger with builtin value for this event.

Definition at line 1261 of file InputEngine.cpp.

+ Here is the call graph for this function:

◆ axisLinearity()

float InputEngine::axisLinearity ( float  axisValue,
float  linearity 
)
protected

Definition at line 806 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ Capture()

void InputEngine::Capture ( )

Definition at line 628 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ clearAllEvents()

void InputEngine::clearAllEvents ( )

Purges all configured bindings.

Definition at line 1326 of file InputEngine.cpp.

+ Here is the call graph for this function:

◆ clearEvents()

void InputEngine::clearEvents ( int  eventID)

Clears all bindings for given event.

Definition at line 1300 of file InputEngine.cpp.

◆ clearEventsByDevice()

void InputEngine::clearEventsByDevice ( int  deviceID)

Clears all bindings with given deviceID (-1 is no exception).

Definition at line 1308 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ completeMissingEvents()

void InputEngine::completeMissingEvents ( )
protected

Definition at line 1877 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ composeEventCommandString()

std::string InputEngine::composeEventCommandString ( event_trigger_t const &  trig)
protected

Definition at line 865 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ composeEventConfigString()

std::string InputEngine::composeEventConfigString ( event_trigger_t const &  trig)
protected

Definition at line 887 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deadZone()

float InputEngine::deadZone ( float  axis,
float  dz 
)
protected

Definition at line 791 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ destroy()

void InputEngine::destroy ( )

Definition at line 439 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ eraseEvent()

void InputEngine::eraseEvent ( int  eventID,
const event_trigger_t t 
)

Definition at line 1284 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ eventIDToDescription()

String InputEngine::eventIDToDescription ( int  eventID)
static

Definition at line 2068 of file InputEngine.cpp.

◆ eventIDToName()

String InputEngine::eventIDToName ( int  eventID)
static

Definition at line 2056 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getCurrentJoyButton()

int InputEngine::getCurrentJoyButton ( int &  joystickNumber,
int &  button 
)

Definition at line 1672 of file InputEngine.cpp.

◆ getCurrentJoyState()

JoyStickState * InputEngine::getCurrentJoyState ( int  joystickNumber)

Definition at line 1737 of file InputEngine.cpp.

◆ getCurrentKeyCombo()

int InputEngine::getCurrentKeyCombo ( Ogre::String *  combo)

Returns number of non-modifier keys pressed (or modifier count as negative number).

Definition at line 1744 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCurrentPovValue()

int InputEngine::getCurrentPovValue ( int &  joystickNumber,
int &  pov,
int &  povdir 
)

Definition at line 1689 of file InputEngine.cpp.

◆ getDeviceName()

String InputEngine::getDeviceName ( event_trigger_t const &  evt)

Definition at line 1195 of file InputEngine.cpp.

+ Here is the call graph for this function:

◆ getEventBoolValue()

bool InputEngine::getEventBoolValue ( int  eventID)

Definition at line 757 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEventBoolValueBounce()

bool InputEngine::getEventBoolValueBounce ( int  eventID,
float  time = 0.2f 
)

Definition at line 762 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEventBounceTime()

float InputEngine::getEventBounceTime ( int  eventID)

Definition at line 775 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getEventCommand()

String InputEngine::getEventCommand ( int  eventID)

Definition at line 820 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEventCommandTrimmed()

std::string InputEngine::getEventCommandTrimmed ( int  eventID)

Omits 'EXPL' modifier.

Definition at line 831 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEventConfig()

String InputEngine::getEventConfig ( int  eventID)

Definition at line 842 of file InputEngine.cpp.

+ Here is the call graph for this function:

◆ getEventDefaultConfig()

String InputEngine::getEventDefaultConfig ( int  eventID)

Definition at line 853 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getEventGroup()

String InputEngine::getEventGroup ( Ogre::String  eventName)
protected

Definition at line 1795 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getEvents()

EventMap& RoR::InputEngine::getEvents ( )
inline

Definition at line 510 of file InputEngine.h.

+ Here is the caller graph for this function:

◆ getEventTypeName()

const char * InputEngine::getEventTypeName ( eventtypes  type)
static

Enum to string helper.

Definition at line 1220 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getEventValue()

float InputEngine::getEventValue ( int  eventID,
bool  pure = false,
InputSourceType  valueSource = InputSourceType::IST_ANY 
)

valueSource: IST_ANY=digital and analog devices, IST_DIGITAL=only digital, IST_ANALOG=only analog

Definition at line 958 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getForceFeedbackDevice()

OIS::ForceFeedback* RoR::InputEngine::getForceFeedbackDevice ( )
inline

Definition at line 569 of file InputEngine.h.

+ Here is the caller graph for this function:

◆ getJoyComponentCount()

int InputEngine::getJoyComponentCount ( OIS::ComponentType  type,
int  joystickNumber 
)

Definition at line 1723 of file InputEngine.cpp.

◆ getJoyVendor()

std::string InputEngine::getJoyVendor ( int  joystickNumber)

Definition at line 1730 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getKeboardKeyForCommand()

int InputEngine::getKeboardKeyForCommand ( int  eventID)

Returns -1 if not Keyboard.

Definition at line 919 of file InputEngine.cpp.

◆ getKeyForCommand()

String InputEngine::getKeyForCommand ( int  eventID)

Definition at line 2228 of file InputEngine.cpp.

+ Here is the call graph for this function:

◆ getKeyNameForKeyCode()

String InputEngine::getKeyNameForKeyCode ( OIS::KeyCode  keycode)

Definition at line 612 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getLoadedConfigFile()

std::string const & InputEngine::getLoadedConfigFile ( int  deviceID = -1)

Returns filename from loadConfigFile() call.

Definition at line 1948 of file InputEngine.cpp.

◆ getModifierKeyName()

Ogre::String InputEngine::getModifierKeyName ( OIS::KeyCode  key)

Definition at line 2241 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getMouseNormalizedScreenPos()

Ogre::Vector2 InputEngine::getMouseNormalizedScreenPos ( )

Returns XY position in range from 0 (top/left) to 1 (bottom/right)

Definition at line 1707 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getMouseState()

OIS::MouseState InputEngine::getMouseState ( )

Definition at line 603 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ getNumJoysticks()

int RoR::InputEngine::getNumJoysticks ( )
inline

Definition at line 509 of file InputEngine.h.

◆ GetOisKeyboard()

OIS::Keyboard* RoR::InputEngine::GetOisKeyboard ( )
inline

Definition at line 474 of file InputEngine.h.

+ Here is the caller graph for this function:

◆ getTriggerCommand()

String InputEngine::getTriggerCommand ( event_trigger_t const &  evt)

Definition at line 837 of file InputEngine.cpp.

+ Here is the call graph for this function:

◆ initAllKeys()

void InputEngine::initAllKeys ( )
protected

Definition at line 2080 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ isEventAnalog()

bool InputEngine::isEventAnalog ( int  eventID)

Definition at line 931 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isEventDefined()

bool InputEngine::isEventDefined ( int  eventID)

Definition at line 908 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ isKeyDown()

bool InputEngine::isKeyDown ( OIS::KeyCode  mod)

Asks OIS directly.

Definition at line 1170 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ isKeyDownEffective()

bool InputEngine::isKeyDownEffective ( OIS::KeyCode  mod)

Reads RoR internal buffer.

Definition at line 1177 of file InputEngine.cpp.

◆ isKeyDownValueBounce()

bool InputEngine::isKeyDownValueBounce ( OIS::KeyCode  mod,
float  time = 0.2f 
)

Definition at line 1182 of file InputEngine.cpp.

+ Here is the call graph for this function:

◆ loadConfigFile()

bool InputEngine::loadConfigFile ( int  deviceID = -1)

Loads config file specific to a device and OS (or default config if deviceID is -1).

Definition at line 1894 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadMapping()

bool InputEngine::loadMapping ( Ogre::String  fileName,
int  deviceID 
)
protected

Definition at line 1957 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ logval()

float InputEngine::logval ( float  val)
protected

Definition at line 811 of file InputEngine.cpp.

◆ newEvent()

event_trigger_t InputEngine::newEvent ( )
protected

Definition at line 1716 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ ProcessJoystickEvent()

void InputEngine::ProcessJoystickEvent ( const OIS::JoyStickEvent &  arg)

Definition at line 676 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ ProcessKeyPress()

void InputEngine::ProcessKeyPress ( const OIS::KeyEvent &  arg)

Definition at line 685 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ ProcessKeyRelease()

void InputEngine::ProcessKeyRelease ( const OIS::KeyEvent &  arg)

Definition at line 690 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ processLine()

bool InputEngine::processLine ( const char *  line,
int  deviceID = -1 
)

Definition at line 1332 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processMouseMotionEvent()

void InputEngine::processMouseMotionEvent ( const OIS::MouseEvent &  arg)

Definition at line 696 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ processMousePressEvent()

void InputEngine::processMousePressEvent ( const OIS::MouseEvent &  arg,
OIS::MouseButtonID  _id 
)

Definition at line 704 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ processMouseReleaseEvent()

void InputEngine::processMouseReleaseEvent ( const OIS::MouseEvent &  arg,
OIS::MouseButtonID  _id 
)

Definition at line 721 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ resetKeysAndMouseButtons()

void InputEngine::resetKeysAndMouseButtons ( )

Definition at line 729 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ resolveEventName()

int InputEngine::resolveEventName ( Ogre::String  eventName)
static

Definition at line 2043 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ saveConfigFile()

bool InputEngine::saveConfigFile ( int  deviceID = -1)

Wites events with matching deviceID to loaded file with matching deviceID (or default file if deviceID is -1).

Definition at line 1938 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveMapping()

bool InputEngine::saveMapping ( Ogre::String  fileName,
int  deviceID 
)
protected

Definition at line 1991 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setEventSimulatedValue()

void InputEngine::setEventSimulatedValue ( RoR::events  eventID,
float  value 
)

Definition at line 747 of file InputEngine.cpp.

◆ setEventStatusSupressed()

void InputEngine::setEventStatusSupressed ( RoR::events  eventID,
bool  supress 
)

Definition at line 752 of file InputEngine.cpp.

◆ SetJoystickListener()

void InputEngine::SetJoystickListener ( OIS::JoyStickListener *  obj)

Definition at line 667 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ SetKeyboardListener()

void InputEngine::SetKeyboardListener ( OIS::KeyListener *  obj)

Definition at line 655 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ SetMouseListener()

void InputEngine::SetMouseListener ( OIS::MouseListener *  obj)

Definition at line 661 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ setup()

void InputEngine::setup ( )
protected

Definition at line 470 of file InputEngine.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateConfigline()

bool InputEngine::updateConfigline ( event_trigger_t t)

Definition at line 1809 of file InputEngine.cpp.

◆ updateEvent()

void InputEngine::updateEvent ( int  eventID,
const event_trigger_t t 
)

Definition at line 1271 of file InputEngine.cpp.

◆ updateKeyBounces()

void InputEngine::updateKeyBounces ( float  dt)

Definition at line 780 of file InputEngine.cpp.

+ Here is the caller graph for this function:

◆ windowResized()

void InputEngine::windowResized ( Ogre::RenderWindow *  rw)

Definition at line 644 of file InputEngine.cpp.

+ Here is the caller graph for this function:

Field Documentation

◆ allit

std::map<std::string, OIS::KeyCode>::iterator RoR::InputEngine::allit
protected

Definition at line 601 of file InputEngine.h.

◆ allkeys

std::map<std::string, OIS::KeyCode> RoR::InputEngine::allkeys
protected

Definition at line 600 of file InputEngine.h.

◆ BUILTIN_MAPPING_DEVICEID

const int RoR::InputEngine::BUILTIN_MAPPING_DEVICEID = -2
static

virtual device ID for builtin defaults

Definition at line 466 of file InputEngine.h.

◆ DEFAULT_MAPFILE

const std::string InputEngine::DEFAULT_MAPFILE = "input.map"
static

= "input.map";

Definition at line 464 of file InputEngine.h.

◆ DEFAULT_MAPFILE_DEVICEID

const int RoR::InputEngine::DEFAULT_MAPFILE_DEVICEID = -1
static

virtual device ID for "input.map" entries

Definition at line 465 of file InputEngine.h.

◆ event_states_supressed

std::map<int, bool> RoR::InputEngine::event_states_supressed
protected

Definition at line 592 of file InputEngine.h.

◆ event_times

std::map<int, float> RoR::InputEngine::event_times
protected

Definition at line 591 of file InputEngine.h.

◆ event_values_simulated

std::map<int, float> RoR::InputEngine::event_values_simulated
protected

Definition at line 590 of file InputEngine.h.

◆ events

std::map<int, std::vector<event_trigger_t> > RoR::InputEngine::events
protected

Definition at line 589 of file InputEngine.h.

◆ free_joysticks

int RoR::InputEngine::free_joysticks
protected

Number of detected game controllers.

Definition at line 579 of file InputEngine.h.

◆ joyState

OIS::JoyStickState RoR::InputEngine::joyState[MAX_JOYSTICKS]
protected

Definition at line 585 of file InputEngine.h.

◆ keyState

std::map<int, bool> RoR::InputEngine::keyState
protected

Definition at line 584 of file InputEngine.h.

◆ m_loaded_configs

std::string RoR::InputEngine::m_loaded_configs[MAX_JOYSTICKS]
protected

Definition at line 593 of file InputEngine.h.

◆ m_oisworkaround_frames_since_reset

size_t RoR::InputEngine::m_oisworkaround_frames_since_reset = 0u
protected

Definition at line 617 of file InputEngine.h.

◆ m_oisworkaround_lmbdowns_since_reset

size_t RoR::InputEngine::m_oisworkaround_lmbdowns_since_reset = 0u
protected

Definition at line 618 of file InputEngine.h.

◆ mForceFeedback

OIS::ForceFeedback* RoR::InputEngine::mForceFeedback
protected

Definition at line 580 of file InputEngine.h.

◆ mInputManager

OIS::InputManager* RoR::InputEngine::mInputManager
protected

Definition at line 569 of file InputEngine.h.

◆ mJoy

OIS::JoyStick* RoR::InputEngine::mJoy[MAX_JOYSTICKS]
protected

Definition at line 578 of file InputEngine.h.

◆ mKeyboard

OIS::Keyboard* RoR::InputEngine::mKeyboard
protected

Definition at line 577 of file InputEngine.h.

◆ mMouse

OIS::Mouse* RoR::InputEngine::mMouse
protected

Definition at line 576 of file InputEngine.h.

◆ mouseState

OIS::MouseState RoR::InputEngine::mouseState
protected

Definition at line 586 of file InputEngine.h.

◆ uniqueCounter

int RoR::InputEngine::uniqueCounter
protected

Definition at line 581 of file InputEngine.h.


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