MCPcopy Create free account
hub / github.com/Illation/ETEngine / GetMouseButton

Method GetMouseButton

Engine/source/EtCore/Util/InputManager.cpp:59–67  ·  view source on GitHub ↗

--------------------------------- InputManager::GetMouseButton Returns the state of a given mouse button

Source from the content-addressed store, hash-verified

57// Returns the state of a given mouse button
58//
59E_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

Callers 2

ProcessMethod · 0.80
ProcessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected