summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-10-08 17:02:16 +0000
committerJens Arnold <amiconn@rockbox.org>2004-10-08 17:02:16 +0000
commit5cf1c97aea10864ecb6c3836a5c17845a5906d79 (patch)
tree3ffd9c0a46af7f856c896e1eef6e7b3c0c53fe6e /firmware/drivers/button.c
parentca8dc65ef1acf83b8ed714c9b83aa302730ac107 (diff)
downloadrockbox-5cf1c97aea10864ecb6c3836a5c17845a5906d79.zip
rockbox-5cf1c97aea10864ecb6c3836a5c17845a5906d79.tar.gz
rockbox-5cf1c97aea10864ecb6c3836a5c17845a5906d79.tar.bz2
rockbox-5cf1c97aea10864ecb6c3836a5c17845a5906d79.tar.xz
Button flip enabled on Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5226 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index d05f81b..607e72e 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -477,6 +477,9 @@ static int button_read(void)
else if (data >= 0x0A1)
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
status twice in a row. */
if(btn != last_read)