summaryrefslogtreecommitdiff
path: root/src/doom
diff options
context:
space:
mode:
Diffstat (limited to 'src/doom')
-rw-r--r--src/doom/d_main.c47
-rw-r--r--src/doom/d_main.h7
2 files changed, 0 insertions, 54 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index 2ab329bf..6a6ab57d 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -144,53 +144,6 @@ void D_DoAdvanceDemo (void);
//
-// EVENT HANDLING
-//
-// Events are asynchronous inputs generally generated by the game user.
-// Events can be discarded if no responder claims them
-//
-
-#define MAXEVENTS 64
-
-static event_t events[MAXEVENTS];
-static int eventhead;
-static int eventtail;
-
-
-//
-// D_PostEvent
-// Called by the I/O functions when input is detected
-//
-void D_PostEvent (event_t* ev)
-{
- events[eventhead] = *ev;
- eventhead = (eventhead + 1) % MAXEVENTS;
-}
-
-// Read an event from the queue.
-
-event_t *D_PopEvent(void)
-{
- event_t *result;
-
- // No more events waiting.
-
- if (eventtail == eventhead)
- {
- return NULL;
- }
-
- result = &events[eventtail];
-
- // Advance to the next event in the queue.
-
- eventtail = (eventtail + 1) % MAXEVENTS;
-
- return result;
-}
-
-
-//
// D_ProcessEvents
// Send all the events of the given timestamp down the responder chain
//
diff --git a/src/doom/d_main.h b/src/doom/d_main.h
index 14536447..79f7c7e3 100644
--- a/src/doom/d_main.h
+++ b/src/doom/d_main.h
@@ -41,13 +41,6 @@
//
void D_DoomMain (void);
-// Called by IO functions when input is detected.
-void D_PostEvent (event_t *ev);
-
-// Read an event from the event queue
-
-event_t *D_PopEvent(void);
-
// Read events from all input devices
void D_ProcessEvents (void);