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

Method Update

Engine/source/EtCore/Util/InputManager.cpp:19–36  ·  view source on GitHub ↗

--------------------------------- InputManager::Update Updates key states

Source from the content-addressed store, hash-verified

17// Updates key states
18//
19void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected