From 838d256ab4d11adc6d320e0c437d435e3bac5dec Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 1 Sep 2015 17:03:14 +0200 Subject: gl: Handle keyboard events in main loop. Also fix event loop and refreshing the display at the correct times. --- platform/gl/gl-app.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'platform/gl/gl-app.h') diff --git a/platform/gl/gl-app.h b/platform/gl/gl-app.h index 2ecee262..2a00bec4 100644 --- a/platform/gl/gl-app.h +++ b/platform/gl/gl-app.h @@ -3,7 +3,10 @@ struct ui { - int x, y, down, middle, right; + int x, y; + int down, middle, right; + int key, special, mod; + void *hot, *active; int fontsize; -- cgit v1.2.3