forked from len0rd/rockbox
Now doesn't generate extraneous key-down events when releasing one key in a combo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4939 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f209eb9a83
commit
6b8d020876
1 changed files with 62 additions and 61 deletions
|
@ -86,7 +86,8 @@ static void button_tick(void)
|
|||
{
|
||||
queue_post(&button_queue, BUTTON_REL | diff, NULL);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if ( btn )
|
||||
{
|
||||
/* normal keypress */
|
||||
|
@ -149,7 +150,7 @@ static void button_tick(void)
|
|||
repeat = false;
|
||||
count = 0;
|
||||
}
|
||||
|
||||
}
|
||||
lastbtn = btn & ~(BUTTON_REL | BUTTON_REPEAT);
|
||||
tick = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue