#include <keybd.h>
Public Methods | |
Message | Event () |
Message | WaitForAnyEvent () |
Message | WaitForEvent (Message &) |
void | Flush (void) |
|
Definition at line 16 of file keybd.c. References Message::d1, Message::d2, KeyMsg, and KeyPressed. Referenced by Flush(), WaitForAnyEvent(), and WaitForEvent().
00017 { 00018 if (! kbhit()) 00019 return NullMsg; 00020 else 00021 { 00022 Message msg (KeyMsg, KeyPressed, getch ()); 00023 if (msg.d1 == 0) 00024 msg.d2 = getch (); 00025 return msg; 00026 } 00027 } |
|
Definition at line 52 of file keybd.c. References Event().
|
|
Definition at line 30 of file keybd.c. References Message::code, Event(), and Idle.
|
|
Definition at line 41 of file keybd.c. References Event().
|