--------------------------------- InputManager::GetMouseButton Returns the state of a given mouse button
| 57 | // Returns the state of a given mouse button |
| 58 | // |
| 59 | E_KeyState InputManager::GetMouseButton(E_MouseButton const button) |
| 60 | { |
| 61 | if (m_MouseConsumed) |
| 62 | { |
| 63 | return E_KeyState::Up; |
| 64 | } |
| 65 | |
| 66 | return m_MouseButtons[button]; |
| 67 | } |
| 68 | |
| 69 | //--------------------------------- |
| 70 | // InputManager::OnKeyPressed |