forked from len0rd/rockbox
Button flip enabled on Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5226 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ca8dc65ef1
commit
5cf1c97aea
1 changed files with 3 additions and 0 deletions
|
|
@ -477,6 +477,9 @@ static int button_read(void)
|
||||||
else if (data >= 0x0A1)
|
else if (data >= 0x0A1)
|
||||||
btn |= BUTTON_DOWN;
|
btn |= BUTTON_DOWN;
|
||||||
|
|
||||||
|
if (btn && flipped)
|
||||||
|
btn = button_flip(btn); /* swap upside down */
|
||||||
|
|
||||||
/* Filter the button status. It is only accepted if we get the same
|
/* Filter the button status. It is only accepted if we get the same
|
||||||
status twice in a row. */
|
status twice in a row. */
|
||||||
if(btn != last_read)
|
if(btn != last_read)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue