From c5837f399712267a756b8e6615a55923c292359e Mon Sep 17 00:00:00 2001 From: that Date: Sun, 1 Feb 2015 01:59:43 +0100 Subject: gui: fix lag (and event logging) - Process multiple input events per frame even if rendering takes longer than 33 ms. Limit minimum frames per second to 2 instead, allowing us to catch up with the input events. The lag was especially visible when using the mouse. - Move blankTimer calls to the main input function so that moving the mouse also unblanks. - Fix a compile error with event logging. Change-Id: If9e0360f5cc0562c4356611afc61b6d583fb1ec4 --- minuitwrp/events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'minuitwrp') diff --git a/minuitwrp/events.c b/minuitwrp/events.c index 98b3a34ee..e2414a440 100644 --- a/minuitwrp/events.c +++ b/minuitwrp/events.c @@ -752,9 +752,10 @@ int ev_get(struct input_event *ev) } } } + return -1; } - return -1; + return -2; } int ev_wait(int timeout) -- cgit v1.2.3