MCPcopy Create free account
hub / github.com/NetHack/NetHack / GetFromKeyQueue

Function GetFromKeyQueue

outdated/sys/mac/macwin.c:182–195  ·  view source on GitHub ↗

* Get key from queue */

Source from the content-addressed store, hash-verified

180 * Get key from queue
181 */
182unsigned char
183GetFromKeyQueue(void)
184{
185 unsigned char ret;
186
187 if (keyQueueCount) {
188 ret = keyQueue[keyQueueRead++];
189 keyQueueCount--;
190 if (keyQueueRead >= QUEUE_LEN)
191 keyQueueRead = 0;
192 } else
193 ret = 0;
194 return ret;
195}
196
197/*
198 * Cursor movement

Callers 3

tgetchFunction · 0.85
mac_nhgetchFunction · 0.85
try_key_queueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected