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/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index ef8ca7bea7..8bcc25ae40 100644 --- a/apps/main.c +++ b/apps/main.c @@ -149,8 +149,7 @@ void init(void) global_settings.mdb_enable, global_settings.superbass); mpeg_init(); - while (button_get(false) != 0) - ; /* Empty the keyboard buffer */ + button_clear_queue(); /* Empty the keyboard buffer */ } #else -- cgit v1.2.3