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

Function KeyDown

outdated/sys/mac/dprintf.c:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#include "macwin.h"
7
8static Boolean
9KeyDown(unsigned short code)
10{
11 unsigned char keys[16];
12
13 GetKeys((void *) keys);
14 return ((keys[code >> 3] >> (code & 7)) & 1) != 0;
15}
16
17void
18dprintf(char *format, ...)

Callers 1

dprintfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected