source:
orxonox.OLD/orxonox/trunk/src/lib/event/event.h
@
4759
Last change on this file since 4759 was 4457, checked in by patrick, 20 years ago | |
---|---|
File size: 826 bytes |
Rev | Line | |
---|---|---|
[4329] | 1 | /*! |
[4346] | 2 | \file event.h |
3 | \brief an abstract event | |
[4329] | 4 | |
5 | */ | |
6 | ||
[4346] | 7 | #ifndef _EVENT_H |
8 | #define _EVENT_H | |
[4329] | 9 | |
[4350] | 10 | |
[4329] | 11 | #include "base_object.h" |
[4352] | 12 | #include "event_def.h" |
[4381] | 13 | #include "sdlincl.h" |
[4329] | 14 | |
15 | ||
[4346] | 16 | //! An abstract event class |
[4404] | 17 | class Event : virtual public BaseObject { |
[4329] | 18 | |
19 | public: | |
[4346] | 20 | Event(); |
21 | virtual ~Event(); | |
[4329] | 22 | |
[4350] | 23 | |
[4454] | 24 | int offset; //!< offset in the event type array |
25 | int type; //!< the type field | |
26 | bool bPressed; //!< is true, if the button/mouse was pressed, false if released | |
[4350] | 27 | |
[4454] | 28 | Uint16 x; //!< x coordinate |
29 | Uint16 y; //!< y coordinate | |
30 | Sint16 xRel; //!< relative x movement to last point | |
31 | Sint16 yRel; //!< relative y movement to last point | |
[4329] | 32 | }; |
33 | ||
[4346] | 34 | #endif /* _EVENT_H */ |
Note: See TracBrowser
for help on using the repository browser.