diff options
Diffstat (limited to 'src/d_event.h')
-rw-r--r-- | src/d_event.h | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/src/d_event.h b/src/d_event.h index 4578870f..e47f82df 100644 --- a/src/d_event.h +++ b/src/d_event.h @@ -42,7 +42,8 @@ typedef enum ev_keydown, ev_keyup, ev_mouse, - ev_joystick + ev_joystick, + ev_quit } evtype_t; // Event structure. @@ -55,22 +56,6 @@ typedef struct } 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; - - - // // Button/action code definitions. // @@ -107,11 +92,13 @@ typedef enum -// -// GLOBAL VARIABLES -// +// Called by IO functions when input is detected. +void D_PostEvent (event_t *ev); -extern gameaction_t gameaction; +// Read an event from the event queue + +event_t *D_PopEvent(void); #endif + |