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/calculator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/calculator.c') diff --git a/apps/plugins/calculator.c b/apps/plugins/calculator.c index 04231f471e..193ac8a7ce 100644 --- a/apps/plugins/calculator.c +++ b/apps/plugins/calculator.c @@ -397,7 +397,7 @@ void cal_initial (void) printResult(); /* clear button queue */ - while (rb->button_get(false)); + rb->button_clear_queue(); } /* ----------------------------------------------------------------------- @@ -1357,7 +1357,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) } /* while (calStatus != cal_exit ) */ /* rb->splash(HZ*2, true, "Hello world!"); */ - while (rb->button_get(false)); + rb->button_clear_queue(); return PLUGIN_OK; } -- cgit v1.2.3