summaryrefslogtreecommitdiff
path: root/src/gfx.h
diff options
context:
space:
mode:
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.