MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / getKeyPressed

Function getKeyPressed

TheForceEngine/TFE_Input/input.cpp:267–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 }
266
267 KeyboardCode getKeyPressed(bool ignoreModKeys)
268 {
269 for (s32 i = 0; i < KEY_COUNT; i++)
270 {
271 if (ignoreModKeys && (i == KEY_LSHIFT || i == KEY_RSHIFT || i == KEY_LALT || i == KEY_RALT || i == KEY_LCTRL || i == KEY_RCTRL))
272 {
273 continue;
274 }
275
276 if (s_keyPressed[i])
277 {
278 return KeyboardCode(i);
279 }
280 }
281 return KEY_UNKNOWN;
282 }
283
284 Button getControllerButtonPressed()
285 {

Callers 2

inputPrefFunction · 0.85
configInputFunction · 0.85

Calls 1

KeyboardCodeEnum · 0.85

Tested by

no test coverage detected