summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/d_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/d_event.h')
-rw-r--r--apps/plugins/doom/d_event.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/apps/plugins/doom/d_event.h b/apps/plugins/doom/d_event.h
index 6896fd5c37..b9b42a3989 100644
--- a/apps/plugins/doom/d_event.h
+++ b/apps/plugins/doom/d_event.h
@@ -42,13 +42,14 @@
42// 42//
43 43
44// Input event types. 44// Input event types.
45typedef enum 45enum
46{ 46{
47 ev_keydown, 47 ev_keydown,
48 ev_keyup, 48 ev_keyup,
49 ev_mouse, 49 ev_mouse,
50 ev_joystick 50 ev_joystick
51} evtype_t; 51};
52typedef int evtype_t;
52 53
53// Event structure. 54// Event structure.
54typedef struct 55typedef struct
@@ -60,7 +61,7 @@ typedef struct
60} event_t; 61} event_t;
61 62
62 63
63typedef enum 64enum
64{ 65{
65 ga_nothing, 66 ga_nothing,
66 ga_loadlevel, 67 ga_loadlevel,
@@ -71,14 +72,15 @@ typedef enum
71 ga_completed, 72 ga_completed,
72 ga_victory, 73 ga_victory,
73 ga_worlddone, 74 ga_worlddone,
74} gameaction_t; 75};
76typedef unsigned gameaction_t;
75 77
76 78
77 79
78// 80//
79// Button/action code definitions. 81// Button/action code definitions.
80// 82//
81typedef enum 83enum
82{ 84{
83 // Press "Fire". 85 // Press "Fire".
84 BT_ATTACK = 1, 86 BT_ATTACK = 1,
@@ -111,7 +113,8 @@ typedef enum
111 BTS_SAVEMASK = (4+8+16), 113 BTS_SAVEMASK = (4+8+16),
112 BTS_SAVESHIFT = 2, 114 BTS_SAVESHIFT = 2,
113 115
114} buttoncode_t; 116};
117typedef unsigned buttoncode_t;
115 118
116 119
117// 120//