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

Function ddio_KeyInKey

ddio/key.cpp:254–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254int ddio_KeyInKey() {
255 unsigned key = 0;
256
257 if (DDIO_key_queue.head != DDIO_key_queue.tail) {
258 key = (unsigned)DDIO_key_queue.buffer[DDIO_key_queue.head];
259 // mprintf(1, "%x ", key);
260 DDIO_key_queue.head++;
261 if (DDIO_key_queue.head >= KEY_QUEUE_SIZE)
262 DDIO_key_queue.head = 0;
263 }
264
265 return (int)key;
266}
267
268int ddio_KeyPeek() {
269 if (DDIO_key_queue.head != DDIO_key_queue.tail) {

Callers 15

FontKernFunction · 0.85
message_boxFunction · 0.85
FontCreateFunction · 0.85
FontViewFunction · 0.85
EndHemicubeDrawingFunction · 0.85
OnIdleMethod · 0.85
CalculateRadiosityFunction · 0.85
DoTerrainDynamicTableFunction · 0.85
ui_KeyPollFunction · 0.85
con_raw_DeferFunction · 0.85
get_controller_valueMethod · 0.85
get_controller_valueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected