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

Method CycleKeyState

Engine/source/EtCore/Util/InputManager.cpp:166–176  ·  view source on GitHub ↗

--------------------------------- InputManager::CycleKeyState Updates a key state

Source from the content-addressed store, hash-verified

164// Updates a key state
165//
166void InputManager::CycleKeyState(E_KeyState& state) const
167{
168 if (state == E_KeyState::Pressed)
169 {
170 state = E_KeyState::Down;
171 }
172 else if (state == E_KeyState::Released)
173 {
174 state = E_KeyState::Up;
175 }
176}
177
178
179} // namespace core

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected