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

Function WindowGetevent

sys/amiga/amiwind.c:579–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

577}
578
579WETYPE
580WindowGetevent(void)
581{
582 lastevent.type = WEUNK;
583 while (amikbhit() == 0) {
584 WaitPort(HackPort);
585 }
586
587 if (KbdBuffered) {
588 lastevent.type = WEKEY;
589 lastevent.un.key = BufferGetchar();
590 }
591 return (lastevent.type);
592}
593
594/*
595 * Clean up everything. But before we do, ask the user to hit return

Callers 1

amii_nh_poskeyFunction · 0.85

Calls 2

amikbhitFunction · 0.85
BufferGetcharFunction · 0.85

Tested by

no test coverage detected