Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/util/event/event.h @ 4362

Last change on this file since 4362 was 4362, checked in by patrick, 19 years ago

orxonox/trunk: type specific event handling routine

File size: 710 bytes
Line 
1/*!
2    \file event.h
3    \brief an abstract event
4
5*/
6
7#ifndef _EVENT_H
8#define _EVENT_H
9
10
11#include "base_object.h"
12#include "event_def.h"
13
14
15//! An abstract event class
16class Event : public BaseObject {
17
18 public:
19  Event();
20  virtual ~Event();
21
22
23  int offset;                      //!< offset in the event type array
24  char cmd[CMD_LENGHT];            //!< the command delivered
25  int type;                        //!< the type field
26  bool bPressed;                   //!< is true, if the button/mouse was pressed, false if released
27       
28  Uint16 x, y;                     //!< x and y coordinates
29  Sint16 xRel, yRel;               //!< relative x and y movement to last point
30};
31
32#endif /* _EVENT_H */
Note: See TracBrowser for help on using the repository browser.