diff options
author | Ian C <ianc@noddybox.co.uk> | 2003-12-19 19:31:57 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2003-12-19 19:31:57 +0000 |
commit | 9443eab98692b668fd35fc2a7e2cfb043953dbc7 (patch) | |
tree | eb7082f5bfec8b065949e9b0e068837315db3e46 /src/gfx.h | |
parent | a43db151b99687a85932f8172f73151bfcb93e88 (diff) |
Added start of simple GUI and tweaked font
Diffstat (limited to 'src/gfx.h')
-rw-r--r-- | src/gfx.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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. |