1
0
Fork 0
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:
Jens Arnold 2004-10-08 17:02:16 +00:00
parent ca8dc65ef1
commit 5cf1c97aea

View file

@ -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)