From 9443eab98692b668fd35fc2a7e2cfb043953dbc7 Mon Sep 17 00:00:00 2001 From: Ian C Date: Fri, 19 Dec 2003 19:31:57 +0000 Subject: Added start of simple GUI and tweaked font --- src/gfx.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gfx.h') 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. -- cgit v1.2.3