--------------------------------- InputManager::Update Updates key states
| 17 | // Updates key states |
| 18 | // |
| 19 | void InputManager::Update() |
| 20 | { |
| 21 | // keyboard |
| 22 | for (auto & key : m_KeyStates) |
| 23 | { |
| 24 | CycleKeyState(key.second); |
| 25 | } |
| 26 | |
| 27 | // mouse |
| 28 | for (auto & button : m_MouseButtons) |
| 29 | { |
| 30 | CycleKeyState(button); |
| 31 | } |
| 32 | |
| 33 | m_MouseConsumed = false; |
| 34 | m_MouseWheelDelta = vec2(); |
| 35 | m_MouseMove = vec2(); |
| 36 | } |
| 37 | |
| 38 | //--------------------------------- |
| 39 | // InputManager::GetKeyState |
nothing calls this directly
no outgoing calls
no test coverage detected