source:
orxonox.OLD/orxonox/trunk/src/util/event/event.h
@
4361
Last change on this file since 4361 was 4361, checked in by patrick, 20 years ago | |
---|---|
File size: 655 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" |
[4329] | 13 | |
14 | ||
[4346] | 15 | //! An abstract event class |
16 | class Event : public BaseObject { | |
[4329] | 17 | |
18 | public: | |
[4346] | 19 | Event(); |
20 | virtual ~Event(); | |
[4329] | 21 | |
[4350] | 22 | |
23 | int offset; //!< offset in the event type array | |
24 | char cmd[CMD_LENGHT]; //!< the command delivered | |
25 | bool bPressed; //!< is true, if the button/mouse was pressed, false if released | |
26 | ||
27 | Uint16 x, y; //!< x and y coordinates | |
28 | Sint16 xRel, yRel; //!< relative x and y movement to last point | |
[4329] | 29 | }; |
30 | ||
[4346] | 31 | #endif /* _EVENT_H */ |
Note: See TracBrowser
for help on using the repository browser.