Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5081 was 5039, checked in by bensch, 19 years ago

orxonox/trunk: useless stuff :)

File size: 835 bytes
Line 
1/*!
2 * @file event.h
3 * an abstract event
4*/
5
6#ifndef _EVENT_H
7#define _EVENT_H
8
9
10#include "base_object.h"
11#include "event_def.h"
12#include "sdlincl.h"
13
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.