1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2005-01-26 22:48:25 +00:00
parent 99d2a4b436
commit 3c348df5ca
10 changed files with 11 additions and 11 deletions

View file

@ -356,7 +356,7 @@ static void fill_buffer(long pos, unsigned char* buf, unsigned size)
rb->lseek(fd, pos, SEEK_SET);
numread = rb->read(fd, buf, size);
while (rb->button_get(false)); /* clear button queue */
rb->button_clear_queue(); /* clear button queue */
for(i = 0; i < numread; i++) {
switch(buf[i]) {