Definition at line 14 of file Keymap.h.
Public Member Functions | |
void | registerKey (const KeyStroke &stroke, const KeyDesc &desc) |
int | indexPressed (const KeyStroke &stroke) const |
Return index of pressed key. |
|
Return index of pressed key.
Definition at line 25 of file Keymap.cpp. 00026 { 00027 int result = -1; 00028 t_keys::const_iterator it = m_keys.find(stroke); 00029 if (m_keys.end() != it) { 00030 result = it->second.getIndex(); 00031 } 00032 return result; 00033 }
|
|
Definition at line 15 of file Keymap.cpp. 00016 { 00017 m_keys.insert(std::pair<KeyStroke,KeyDesc>(stroke, desc)); 00018 }
|