From 3c348df5cafaf5d893c610fd2caf8234abe5cf88 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 26 Jan 2005 22:48:25 +0000 Subject: Changed several places to use button_clear_queue() to empty the button queue. Added the ability to empty the (system's) button queue to the X11 simulatr. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5665 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/jackpot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/jackpot.c') diff --git a/apps/plugins/jackpot.c b/apps/plugins/jackpot.c index e392c3b35a..d35e35a8c0 100644 --- a/apps/plugins/jackpot.c +++ b/apps/plugins/jackpot.c @@ -125,7 +125,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) rb->lcd_puts_scroll(0,1,"PLAY to begin"); /*Empty the event queue*/ - while (rb->button_get(false)!=BUTTON_NONE); + rb->button_clear_queue(); /* Define the start pattern */ s[0]=(rb->rand()%9)*7; -- cgit v1.2.3