#ifndef __OOL_XKEYBEVENT_H__
#define __OOL_XKEYBEVENT_H__

/*===========================================================================*/
/* OOL ------------------- the Open Object Library ------ OS/2 version 0.01a */
/*===========================================================================*/
/*                              class: XKeyboardEvent                        */
/*                       derived from: XEvent                                */
/*                        last update: 5/96                                  */
/*                      programmed by: Stefan von Brauk                      */
/*===========================================================================*/

#include "xevent.h"

class _export_ XKeyboardEvent: public XEvent
{
      friend MRESULT HandleDefault( XWindow * w, ULONG msg, MPARAM mp1, MPARAM mp2, BOOL& handled);
   private:
      SHORT virtualKey;
      SHORT scanCode;
      XKeyboardEvent( SHORT key, SHORT vKey, SHORT scan): XEvent( key ) { virtualKey = vKey; scanCode = scan;}
   public:
      SHORT GetVirtualKey( void ) { return virtualKey; }
      SHORT GetScanCode(void) {return scanCode;}
};


#endif
