summaryrefslogtreecommitdiff
path: root/src/d_main.h
diff options
context:
space:
mode:
authorSimon Howard2006-01-02 00:17:42 +0000
committerSimon Howard2006-01-02 00:17:42 +0000
commitcdbc892c80a42bf0bbd3559831eb9675b5f019f4 (patch)
tree9e4ed06ca3167bc4280e01b5a1ba7463c02e3c45 /src/d_main.h
parent7f731a106441c357ae9e3509d7541cf87bcc9a63 (diff)
downloadchocolate-doom-cdbc892c80a42bf0bbd3559831eb9675b5f019f4.tar.gz
chocolate-doom-cdbc892c80a42bf0bbd3559831eb9675b5f019f4.tar.bz2
chocolate-doom-cdbc892c80a42bf0bbd3559831eb9675b5f019f4.zip
Encapsulate the event queue code properly. Add a D_PopEvent function
to read a new event from the event queue. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 241
Diffstat (limited to 'src/d_main.h')
-rw-r--r--src/d_main.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/d_main.h b/src/d_main.h
index bcc2d6ae..c227cddc 100644
--- a/src/d_main.h
+++ b/src/d_main.h
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: d_main.h 18 2005-07-23 18:56:07Z fraggle $
+// $Id: d_main.h 241 2006-01-02 00:17:42Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,10 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.4 2006/01/02 00:17:42 fraggle
+// Encapsulate the event queue code properly. Add a D_PopEvent function
+// to read a new event from the event queue.
+//
// Revision 1.3 2005/07/23 18:56:07 fraggle
// Remove unneccessary pragmas
//
@@ -62,7 +66,11 @@ void D_AddFile (char *file);
void D_DoomMain (void);
// Called by IO functions when input is detected.
-void D_PostEvent (event_t* ev);
+void D_PostEvent (event_t *ev);
+
+// Read an event from the event queue
+
+event_t *D_PopEvent(void);