--------------------------------- InputManager::GetKeyState Returns the state of a given key
| 41 | // Returns the state of a given key |
| 42 | // |
| 43 | E_KeyState InputManager::GetKeyState(E_KbdKey const key) |
| 44 | { |
| 45 | auto keyIt = m_KeyStates.find(key); |
| 46 | if (keyIt != m_KeyStates.cend()) |
| 47 | { |
| 48 | return keyIt->second; |
| 49 | } |
| 50 | |
| 51 | return E_KeyState::Up; |
| 52 | } |
| 53 | |
| 54 | //--------------------------------- |
| 55 | // InputManager::GetMouseButton |