#include <K3dKeyMap.h>
Inheritance diagram for K3dKeyMap:
Public Member Functions | |
K3dKeyMap (K3dGameData *_pGameData) | |
~K3dKeyMap () | |
void | InsertKeyMap (EKeyMapAction _eAction, int _iSDLKey) |
Inser action key and SDL index key to the key map. | |
bool | IsKeyPressed (EKeyMapAction _eKey) |
Test if is key pressed. | |
void | DeleteKeyMap () |
Delete key mapK3dKeyboard(). | |
EKeyMapAction | FindKeyMapAction (const int _iVal) |
Find Action key map from TKeyMap. | |
int | FindMapValue (EKeyMapAction _eAction) |
Find value from TKeyMap. | |
Private Attributes | |
K3dGameData * | m_pGameData |
Global game data, data centered game system. | |
TKeyMap | m_tKeyMap |
Key map. |
Definition at line 60 of file K3dKeyMap.h.
K3dKeyMap::K3dKeyMap | ( | K3dGameData * | _pGameData | ) |
K3dKeyMap::~K3dKeyMap | ( | ) |
void K3dKeyMap::InsertKeyMap | ( | EKeyMapAction | _eAction, | |
int | _iSDLKey | |||
) | [inline] |
Inser action key and SDL index key to the key map.
Definition at line 69 of file K3dKeyMap.h.
References m_tKeyMap.
Referenced by K3dKeyMapBuild::GenerateKeyMap().
bool K3dKeyMap::IsKeyPressed | ( | EKeyMapAction | _eKey | ) |
Test if is key pressed.
Definition at line 47 of file K3dKeyMap.cpp.
References K3dKeyboard::IsSdlKeyPressed(), and m_tKeyMap.
Referenced by K3dCamera::UpdateCamera().
void K3dKeyMap::DeleteKeyMap | ( | ) | [inline] |
Delete key mapK3dKeyboard().
Definition at line 76 of file K3dKeyMap.h.
References m_tKeyMap.
Referenced by ~K3dKeyMap().
EKeyMapAction K3dKeyMap::FindKeyMapAction | ( | const int | _iVal | ) |
Find Action key map from TKeyMap.
_iVal | Map value |
Definition at line 54 of file K3dKeyMap.cpp.
References K3dString::GetString(), K_NUM_ACTION, m_tKeyMap, and K3dString::SetNum().
int K3dKeyMap::FindMapValue | ( | EKeyMapAction | _eAction | ) | [inline] |
Find value from TKeyMap.
_eAction | Key map action index |
Definition at line 84 of file K3dKeyMap.h.
References m_tKeyMap.
K3dGameData* K3dKeyMap::m_pGameData [private] |
Global game data, data centered game system.
Reimplemented in K3dScene.
Definition at line 62 of file K3dKeyMap.h.
Referenced by K3dKeyMap().
TKeyMap K3dKeyMap::m_tKeyMap [private] |
Key map.
Definition at line 63 of file K3dKeyMap.h.
Referenced by DeleteKeyMap(), FindKeyMapAction(), FindMapValue(), InsertKeyMap(), and IsKeyPressed().