Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 5130 was 5093, checked in by bensch, 20 years ago

orxonox/trunk: inputLine is working.

File size: 903 bytes
RevLine 
[4782]1/*!
[5039]2 * @file event.h
3 * an abstract event
[5093]4 *
5 * @todo remove HUGE class-overhead. This could also be a struct
[4329]6*/
7
[4346]8#ifndef _EVENT_H
9#define _EVENT_H
[4329]10
[4350]11
[4329]12#include "base_object.h"
[4352]13#include "event_def.h"
[4381]14#include "sdlincl.h"
[4329]15
16
[4346]17//! An abstract event class
[4404]18class Event : virtual public BaseObject {
[4329]19
20 public:
[4346]21  Event();
22  virtual ~Event();
[4329]23
[4350]24
[4454]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
[4782]28
[4454]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
[4782]33
34  SDL_ResizeEvent resize;
[4329]35};
36
[4346]37#endif /* _EVENT_H */
Note: See TracBrowser for help on using the repository browser.