00001 /************************************************************************* 00002 * FILE: keybd.h 00003 * AUTHOR: CAL 00004 * DATE: 18 April 1993 00005 * PURPOSE: 00006 * Keybd class serves as an interface between the UI and the 00007 * keyboard. It generates messages based on keyboard events 00008 * containing character codes and scan codes. 00009 **************************************************************************/ 00010 00011 #ifndef _KEYBD_H 00012 #define _KEYBD_H 00013 00014 #include "messages.h" 00015 00016 00017 /********************************************************************** 00018 * Keybd Class 00019 ***********************************************************************/ 00020 00021 class Keybd 00022 { 00023 public: 00024 Message Event (); // Get last keybd event (or Idle) 00025 Message WaitForAnyEvent (); // Wait for any keybd event 00026 Message WaitForEvent (Message&); // Wait for specific keybd event 00027 void Flush (void); 00028 }; 00029 00030 00031 extern Keybd Keys; // Global instance 00032 00033 #endif 00034