Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/2d-recalc/src/lib/event/event.h @ 5695

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

orxonox/trunk: more definitions of GLGui.
also a patch to the resource-manager

File size: 737 bytes
Line 
1/*!
2 * @file event.h
3 * an abstract event
4 */
5
6#ifndef _EVENT_H
7#define _EVENT_H
8
9#include "sdlincl.h"
10
11//! An abstract event class
12class Event {
13
14 public:
15  Event();
16
17  int      offset;                      //!< offset in the event type array
18  int      type;                        //!< the type field
19  bool     bPressed;                    //!< is true, if the button/mouse was pressed, false if released
20
21  Uint16   x;                           //!< x coordinate
22  Uint16   y;                           //!< y coordinate
23  Sint16   xRel;                        //!< relative x movement to last point
24  Sint16   yRel;                        //!< relative y movement to last point
25
26  SDL_ResizeEvent resize;
27};
28
29#endif /* _EVENT_H */
Note: See TracBrowser for help on using the repository browser.