From 879fabdb1de9a08bb84720059e02783aa4f393c7 Mon Sep 17 00:00:00 2001 From: Felix Arends Date: Wed, 16 Oct 2002 16:26:09 +0000 Subject: finally up-to-date: the win32 simulator (at least for the recorder) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2685 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/win32/button.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'uisimulator/win32/button.c') diff --git a/uisimulator/win32/button.c b/uisimulator/win32/button.c index 97a57a496a..7176cbc20c 100644 --- a/uisimulator/win32/button.c +++ b/uisimulator/win32/button.c @@ -53,6 +53,7 @@ int button_set_release(int newmask) static int real_button_get(void) { int btn = 0; + Sleep (25); if (bActive) { @@ -111,10 +112,7 @@ int button_get(bool block) btn = real_button_get(); - if(!btn) - /* prevent busy-looping */ - Sleep (50); /* ms */ - else + if (btn) break; } while (block); @@ -130,9 +128,9 @@ int button_get_w_tmo(int ticks) if(!btn) /* prevent busy-looping */ - sleep(1); /* one tick! */ + sleep(10); /* one tick! */ else - break; + return btn; } while (--ticks); -- cgit v1.2.3