source:
orxonox.OLD/trunk/src/lib/event/event.h
@
5375
Last change on this file since 5375 was 5366, checked in by bensch, 20 years ago | |
---|---|
File size: 737 bytes |
Rev | Line | |
---|---|---|
[4782] | 1 | /*! |
[5039] | 2 | * @file event.h |
3 | * an abstract event | |
[5366] | 4 | */ |
[4329] | 5 | |
[4346] | 6 | #ifndef _EVENT_H |
7 | #define _EVENT_H | |
[4329] | 8 | |
[4381] | 9 | #include "sdlincl.h" |
[4329] | 10 | |
[4346] | 11 | //! An abstract event class |
[5239] | 12 | class Event { |
[4329] | 13 | |
14 | public: | |
[4346] | 15 | Event(); |
[4329] | 16 | |
[4454] | 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 | |
[4782] | 20 | |
[4454] | 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 | |
[4782] | 25 | |
26 | SDL_ResizeEvent resize; | |
[4329] | 27 | }; |
28 | ||
[4346] | 29 | #endif /* _EVENT_H */ |
Note: See TracBrowser
for help on using the repository browser.