InputMappingTracker Class Reference

[internal] Input mapping tracker (for high level tracking) More...

#include <MercuryInput.h>

Collaboration diagram for InputMappingTracker:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

[internal] Input mapping tracker (for high level tracking)

Definition at line 112 of file MercuryInput.h.


Constructor & Destructor Documentation

InputMappingTracker::~InputMappingTracker (  )  [inline]

Definition at line 115 of file MercuryInput.h.


Member Function Documentation

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.

int InputMappingTracker::MakeMappingCode ( const MString Name,
const MString  Default 
)

Definition at line 175 of file MercuryInput.cpp.

int InputMappingTracker::InputEventNameToCode ( const MString IE  ) 

In the format [controller number]-[button number].

Definition at line 254 of file MercuryInput.cpp.

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.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo