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

Function mswin_input_push

outdated/sys/wince/mhinput.c:48–62  ·  view source on GitHub ↗

add event to the queue */

Source from the content-addressed store, hash-verified

46
47/* add event to the queue */
48void
49mswin_input_push(PMSNHEvent event)
50{
51 int new_write_pos;
52
53 if (!nhi_init_input)
54 mswin_nh_input_init();
55
56 new_write_pos = (nhi_write_pos + 1) % NH_INPUT_BUFFER_SIZE;
57
58 if (new_write_pos != nhi_read_pos) {
59 memcpy(nhi_input_buffer + nhi_write_pos, event, sizeof(*event));
60 nhi_write_pos = new_write_pos;
61 }
62}
63
64/* get event from the queue and delete it */
65PMSNHEvent

Callers

nothing calls this directly

Calls 1

mswin_nh_input_initFunction · 0.70

Tested by

no test coverage detected