Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

InputMapper Class Reference

#include <InputMapper.h>

Collaboration diagram for InputMapper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InputMapper ()
 ~InputMapper ()
void ReadMappingsFromDisk ()
void SaveMappingsToDisk ()
void ClearAllMappings ()
void SetInputMap (DeviceInput DeviceI, GameInput GameI, int iSlotIndex)
void ClearFromInputMap (DeviceInput DeviceI)
void ClearFromInputMap (GameInput GameI, int iSlotIndex)
void AddDefaultMappingsForCurrentGameIfUnmapped ()
void AutoMapJoysticksForCurrentGame ()
bool IsMapped (DeviceInput DeviceI)
bool IsMapped (GameInput GameI)
bool DeviceToGame (DeviceInput DeviceI, GameInput &GameI)
bool GameToDevice (GameInput GameI, int iSoltNum, DeviceInput &DeviceI)
void GameToStyle (GameInput GameI, StyleInput &StyleI)
void StyleToGame (StyleInput StyleI, GameInput &GameI)
void GameToMenu (GameInput GameI, MenuInput &MenuI)
void MenuToGame (MenuInput MenuI, GameInput GameIout[4])
float GetSecsHeld (GameInput GameI)
float GetSecsHeld (MenuInput MenuI)
float GetSecsHeld (StyleInput StyleI)
bool IsButtonDown (GameInput GameI)
bool IsButtonDown (MenuInput MenuI)
bool IsButtonDown (StyleInput StyleI)
void ResetKeyRepeat (GameInput GameI)
void ResetKeyRepeat (MenuInput MenuI)
void ResetKeyRepeat (StyleInput StyleI)
void ApplyMapping (const Mapping *maps, GameController gc, InputDevice device)

Protected Member Functions

void UpdateTempDItoGI ()

Protected Attributes

DeviceInput m_GItoDI [MAX_GAME_CONTROLLERS][MAX_GAME_BUTTONS][NUM_GAME_TO_DEVICE_SLOTS]
GameInput m_tempDItoGI [NUM_INPUT_DEVICES][MAX_DEVICE_BUTTONS]

Constructor & Destructor Documentation

InputMapper::InputMapper  ) 
 

InputMapper::~InputMapper  ) 
 


Member Function Documentation

void InputMapper::AddDefaultMappingsForCurrentGameIfUnmapped  ) 
 

void InputMapper::ApplyMapping const Mapping maps,
GameController  gc,
InputDevice  device
 

void InputMapper::AutoMapJoysticksForCurrentGame  ) 
 

void InputMapper::ClearAllMappings  ) 
 

void InputMapper::ClearFromInputMap GameInput  GameI,
int  iSlotIndex
 

void InputMapper::ClearFromInputMap DeviceInput  DeviceI  ) 
 

bool InputMapper::DeviceToGame DeviceInput  DeviceI,
GameInput GameI
 

bool InputMapper::GameToDevice GameInput  GameI,
int  iSoltNum,
DeviceInput DeviceI
 

void InputMapper::GameToMenu GameInput  GameI,
MenuInput MenuI
 

void InputMapper::GameToStyle GameInput  GameI,
StyleInput StyleI
 

float InputMapper::GetSecsHeld StyleInput  StyleI  ) 
 

float InputMapper::GetSecsHeld MenuInput  MenuI  ) 
 

float InputMapper::GetSecsHeld GameInput  GameI  ) 
 

bool InputMapper::IsButtonDown StyleInput  StyleI  ) 
 

bool InputMapper::IsButtonDown MenuInput  MenuI  ) 
 

bool InputMapper::IsButtonDown GameInput  GameI  ) 
 

bool InputMapper::IsMapped GameInput  GameI  ) 
 

bool InputMapper::IsMapped DeviceInput  DeviceI  ) 
 

void InputMapper::MenuToGame MenuInput  MenuI,
GameInput  GameIout[4]
 

void InputMapper::ReadMappingsFromDisk  ) 
 

void InputMapper::ResetKeyRepeat StyleInput  StyleI  ) 
 

void InputMapper::ResetKeyRepeat MenuInput  MenuI  ) 
 

void InputMapper::ResetKeyRepeat GameInput  GameI  ) 
 

void InputMapper::SaveMappingsToDisk  ) 
 

void InputMapper::SetInputMap DeviceInput  DeviceI,
GameInput  GameI,
int  iSlotIndex
 

void InputMapper::StyleToGame StyleInput  StyleI,
GameInput GameI
 

void InputMapper::UpdateTempDItoGI  )  [protected]
 


Member Data Documentation

DeviceInput InputMapper::m_GItoDI[MAX_GAME_CONTROLLERS][MAX_GAME_BUTTONS][NUM_GAME_TO_DEVICE_SLOTS] [protected]
 

GameInput InputMapper::m_tempDItoGI[NUM_INPUT_DEVICES][MAX_DEVICE_BUTTONS] [protected]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 20:59:34 2005 for StepMania by doxygen 1.3.7