Last change
on this file since 5364 was
5239,
checked in by bensch, 19 years ago
|
orxonox/trunk: compile-performance-stuff
|
File size:
832 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file event.h |
---|
3 | * an abstract event |
---|
4 | * |
---|
5 | * @todo remove HUGE class-overhead. This could also be a struct |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef _EVENT_H |
---|
9 | #define _EVENT_H |
---|
10 | |
---|
11 | |
---|
12 | //#include "base_object.h" |
---|
13 | #include "sdlincl.h" |
---|
14 | |
---|
15 | //! An abstract event class |
---|
16 | class Event { |
---|
17 | |
---|
18 | public: |
---|
19 | Event(); |
---|
20 | |
---|
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 |
---|
24 | |
---|
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 |
---|
29 | |
---|
30 | SDL_ResizeEvent resize; |
---|
31 | }; |
---|
32 | |
---|
33 | #endif /* _EVENT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.