summaryrefslogtreecommitdiff
path: root/src/gfx.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2003-12-19 19:31:57 +0000
committerIan C <ianc@noddybox.co.uk>2003-12-19 19:31:57 +0000
commit9443eab98692b668fd35fc2a7e2cfb043953dbc7 (patch)
treeeb7082f5bfec8b065949e9b0e068837315db3e46 /src/gfx.h
parenta43db151b99687a85932f8172f73151bfcb93e88 (diff)
Added start of simple GUI and tweaked font
Diffstat (limited to 'src/gfx.h')
-rw-r--r--src/gfx.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gfx.h b/src/gfx.h
index b9b353a..93eef60 100644
--- a/src/gfx.h
+++ b/src/gfx.h
@@ -72,10 +72,21 @@ void GFXStartFrame(void);
/* Indicate a frame is done and refreshes the screen
If delay is TRUE, sleeps to implement the frames_per_sec config.
+ It's safe to call this multiple times without a matching GFXStartFrame().
*/
void GFXEndFrame(int delay);
+/* Suck out keyboard events. Returns NULL if no more keyboard events
+*/
+SDL_Event *GFXGetKey(void);
+
+
+/* Wait for a keypress (key up event)
+*/
+SDL_Event *GFXWaitKey(void);
+
+
/*
Note that no bound checking (except for GFXPrint()) is done - it is the
callers responsibility to plot onscreen.