Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: useless stuff :)

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