Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: compile-performance-stuff

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