#include <MercuryInput.h>
Collaboration diagram for InputMappingTracker:
Public Member Functions | |
~InputMappingTracker () | |
void | ReadInMappingsFromINI () |
int | MakeMappingCode (const MString &Name) |
int | MakeMappingCode (const MString &Name, const MString Default) |
int | InputEventNameToCode (const MString &IE) |
In the format [controller number]-[button number]. | |
int | InputEventToCode (const InputEvent &IE) |
void | CodeToHardware (int code, MVector< InputEvent > &out) |
Private Attributes | |
std::map< MString, int > * | m_pMappings |
std::map< MString, int > * | m_pCodes |
std::map< MString, MString > * | m_pAutoCodes |
MVector< MVector< InputEvent > > | m_vDemapped |
int | m_iCurMapNumber |
Definition at line 112 of file MercuryInput.h.
InputMappingTracker::~InputMappingTracker | ( | ) | [inline] |
Definition at line 115 of file MercuryInput.h.
void InputMappingTracker::ReadInMappingsFromINI | ( | ) |
Definition at line 209 of file MercuryInput.cpp.
int InputMappingTracker::MakeMappingCode | ( | const MString & | Name | ) |
Definition at line 187 of file MercuryInput.cpp.
Definition at line 175 of file MercuryInput.cpp.
int InputMappingTracker::InputEventNameToCode | ( | const MString & | IE | ) |
int InputMappingTracker::InputEventToCode | ( | const InputEvent & | IE | ) |
Definition at line 265 of file MercuryInput.cpp.
void InputMappingTracker::CodeToHardware | ( | int | code, | |
MVector< InputEvent > & | out | |||
) |
Definition at line 246 of file MercuryInput.cpp.
std::map< MString, int >* InputMappingTracker::m_pMappings [private] |
Definition at line 127 of file MercuryInput.h.
std::map< MString, int >* InputMappingTracker::m_pCodes [private] |
Definition at line 128 of file MercuryInput.h.
std::map< MString, MString >* InputMappingTracker::m_pAutoCodes [private] |
Definition at line 129 of file MercuryInput.h.
MVector< MVector<InputEvent> > InputMappingTracker::m_vDemapped [private] |
Definition at line 130 of file MercuryInput.h.
int InputMappingTracker::m_iCurMapNumber [private] |
Definition at line 131 of file MercuryInput.h.