1
0
Fork 0
forked from len0rd/rockbox

Win32 simulators: Fixed button repeat handling when releasing buttons.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7134 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-07-13 20:04:43 +00:00
parent b0e78a4674
commit d36567d370

View file

@ -154,7 +154,8 @@ void button_event(int key, bool pressed)
{ {
queue_post(&button_queue, BUTTON_REL | diff, NULL); queue_post(&button_queue, BUTTON_REL | diff, NULL);
} }
else
{
if ( btn ) if ( btn )
{ {
/* normal keypress */ /* normal keypress */
@ -194,7 +195,6 @@ void button_event(int key, bool pressed)
} }
} }
} }
if ( post ) if ( post )
{ {
if(repeat) if(repeat)
@ -210,7 +210,7 @@ void button_event(int key, bool pressed)
repeat = false; repeat = false;
count = 0; count = 0;
} }
}
lastbtn = btn & ~(BUTTON_REL | BUTTON_REPEAT); lastbtn = btn & ~(BUTTON_REL | BUTTON_REPEAT);
} }