Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BEvent.h

Go to the documentation of this file.
00001 // BEvent.h (this is -*- C++ -*-)
00002 // 
00003 // \author: Bjoern Giesler <bjoern@giesler.de>
00004 // 
00005 // 
00006 // 
00007 // $Author: giesler $
00008 // $Locker$
00009 // $Revision$
00010 // $Date: 2002-08-19 10:41:28 +0200 (Mon, 19 Aug 2002) $
00011 
00012 #ifndef BEVENT_H
00013 #define BEVENT_H
00014 
00015 /* system includes */
00016 /* (none) */
00017 
00018 /* my includes */
00019 #include "BGraphics.h"
00020 
00021 typedef enum {
00022   EVT_KEYMASK   = 0x0100,       
00023   EVT_KEYDOWN   = 0x0101,
00024   EVT_KEYHELD   = 0x0110,
00025   EVT_KEYUP     = 0x0111,
00026   EVT_TOUCHMASK = 0x1000,
00027   EVT_TOUCHDOWN = 0x1001,
00028   EVT_TOUCHDRAG = 0x1010,
00029   EVT_TOUCHUP   = 0x1011
00030 } BEventType;
00031 
00032 typedef struct {
00033   BEventType type; // EVT_KEYDOWN, EVT_KEYHELD, EVT_KEYUP
00034   uint32 key;
00035   uint32 keysHeld;
00036 } BKeyEvent;
00037 
00038 typedef struct {
00039   BEventType type; // EVT_TOUCHDOWN, EVT_TOUCHDRAG, EVT_TOUCHUP
00040   int x, y;
00041 } BTouchEvent;
00042 
00043 typedef union {
00044   BEventType type;
00045   BKeyEvent key;
00046   BTouchEvent touch;
00047 } BEvent;
00048 
00049 #endif /* BEVENT_H */

Generated on Sat Dec 29 09:59:23 2007 for DSGUI by doxygen1.3-rc3