Last change
on this file since 3300 was
3279,
checked in by dave, 20 years ago
|
branches/old.dave: Die Neigung des Raumschiffes ist jetzt nicht mehr so stark, und jetzt kann man auch 2 Tasten aufs mal drücken, ohne dass das Raumschiffsche jedes mal anhält:)
|
File size:
710 bytes
|
Rev | Line | |
---|
[2141] | 1 | /*! |
---|
| 2 | \file message_structures.h |
---|
| 3 | \brief contains defintitons of messages that can be passed between classes |
---|
| 4 | */ |
---|
[2551] | 5 | |
---|
| 6 | #ifndef _MESSAGESTRUCTURES_H |
---|
| 7 | #define _MESSAGESTRUCTURES_H |
---|
| 8 | |
---|
[2066] | 9 | #define CMD_LENGHT 16 |
---|
| 10 | |
---|
[2141] | 11 | //! structure that contains a command message |
---|
[2066] | 12 | typedef struct |
---|
[3279] | 13 | { int NumPressed; |
---|
| 14 | float tottime; |
---|
[3172] | 15 | float rottime; |
---|
| 16 | float angle; |
---|
| 17 | bool angleturn; |
---|
| 18 | |
---|
| 19 | |
---|
[2141] | 20 | char cmd[CMD_LENGHT]; //!< the command delivered |
---|
| 21 | bool bUp; //!< false = command was activated / true = command was deactivated |
---|
| 22 | |
---|
| 23 | //! if cmd is "cursor" the coordinates of the mouse cursor are stored here |
---|
| 24 | //!@{ |
---|
[2066] | 25 | Uint16 x, y; |
---|
[2141] | 26 | //!@} |
---|
| 27 | |
---|
| 28 | //! if cmd is "cursor" the relative motion of the mouse cursor is stored here |
---|
| 29 | //!@{ |
---|
| 30 | Sint16 xrel, yrel; |
---|
| 31 | //!@} |
---|
[2551] | 32 | } Command; |
---|
| 33 | |
---|
[2066] | 34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.