source:
orxonox.OLD/trunk/src/lib/event/event.h
@
5215
Last change on this file since 5215 was 5143, checked in by bensch, 19 years ago | |
---|---|
File size: 879 bytes |
Rev | Line | |
---|---|---|
[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" |
[4381] | 13 | #include "sdlincl.h" |
[4329] | 14 | |
[4346] | 15 | //! An abstract event class |
[4404] | 16 | class 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.