Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5207 was 5143, checked in by bensch, 19 years ago

orxonox/trunk: minor cleanup

File size: 879 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 "sdlincl.h"
14
15//! An abstract event class
16class Event : virtual public BaseObject {
17
18 public:
19  Event();
20  virtual ~Event();
21
22
23  int      offset;                      //!< offset in the event type array
24  int      type;                        //!< the type field
25  bool     bPressed;                    //!< is true, if the button/mouse was pressed, false if released
26
27  Uint16   x;                           //!< x coordinate
28  Uint16   y;                           //!< y coordinate
29  Sint16   xRel;                        //!< relative x movement to last point
30  Sint16   yRel;                        //!< relative y movement to last point
31
32  SDL_ResizeEvent resize;
33};
34
35#endif /* _EVENT_H */
Note: See TracBrowser for help on using the repository browser.