| 577 | } |
| 578 | |
| 579 | WETYPE |
| 580 | WindowGetevent(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 |
no test coverage detected