Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/event/event.h @ 5124

Last change on this file since 5124 was 5093, checked in by bensch, 19 years ago

orxonox/trunk: inputLine is working.

File size: 903 bytes
Line 
1/*!
2 * @file event.h
3 * an abstract event
4 *
5 * @todo remove HUGE class-overhead. This could also be a struct
6*/
7
8#ifndef _EVENT_H
9#define _EVENT_H
10
11
12#include "base_object.h"
13#include "event_def.h"
14#include "sdlincl.h"
15
16
17//! An abstract event class
18class Event : virtual public BaseObject {
19
20 public:
21  Event();
22  virtual ~Event();
23
24
25  int      offset;                      //!< offset in the event type array
26  int      type;                        //!< the type field
27  bool     bPressed;                    //!< is true, if the button/mouse was pressed, false if released
28
29  Uint16   x;                           //!< x coordinate
30  Uint16   y;                           //!< y coordinate
31  Sint16   xRel;                        //!< relative x movement to last point
32  Sint16   yRel;                        //!< relative y movement to last point
33
34  SDL_ResizeEvent resize;
35};
36
37#endif /* _EVENT_H */
Note: See TracBrowser for help on using the repository browser.