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:
parent
b0e78a4674
commit
d36567d370
1 changed files with 55 additions and 55 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue