123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- #ifndef __D_EVENT__
- #define __D_EVENT__
- #include "doomtype.h"
- typedef enum
- {
- ev_keydown,
- ev_keyup,
- ev_mouse,
- ev_joystick,
- ev_none,
- } evtype_t;
- typedef struct
- {
- evtype_t type;
- int data1;
- int data2;
- int data3;
- } event_t;
-
- typedef enum
- {
- ga_nothing,
- ga_loadlevel,
- ga_newgame,
- ga_loadgame,
- ga_savegame,
- ga_playdemo,
- ga_completed,
- ga_victory,
- ga_worlddone,
- ga_screenshot
- } gameaction_t;
- typedef enum
- {
-
- BT_ATTACK = 1,
-
- BT_USE = 2,
-
- BT_SPECIAL = 128,
- BT_SPECIALMASK = 3,
-
-
-
- BT_CHANGE = 4,
-
- BT_WEAPONMASK = (8+16+32),
- BT_WEAPONSHIFT = 3,
-
- BTS_PAUSE = 1,
-
- BTS_SAVEGAME = 2,
-
-
- BTS_SAVEMASK = (4+8+16),
- BTS_SAVESHIFT = 2,
-
- } buttoncode_t;
- #define MAXEVENTS 64
- extern event_t events[MAXEVENTS];
- extern int eventhead;
- extern int eventtail;
- extern gameaction_t gameaction;
- #endif
|