MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ddio_UpdateKeyState

Function ddio_UpdateKeyState

ddio/key.cpp:305–315  ·  view source on GitHub ↗

Updates timing info for keys

Source from the content-addressed store, hash-verified

303
304// Updates timing info for keys
305void ddio_UpdateKeyState(int key, bool isdown) {
306 if (isdown) {
307 if (!DDIO_key_state[key]) {
308 ddio_AddKeyToQueue(key);
309 DDIO_key_down_count[key]++;
310 }
311 DDIO_key_state[key] = 1;
312 } else {
313 DDIO_key_state[key] = 0;
314 }
315}
316
317////////////////////////////////////////////////////////////////////////////////
318

Callers 2

sdlKeyFilterFunction · 0.85
GameFrameFunction · 0.85

Calls 1

ddio_AddKeyToQueueFunction · 0.85

Tested by

no test coverage detected