diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2008-05-17 00:29:24 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2008-05-17 00:29:24 +0000 |
commit | 7d67df94a6d1419daad6a5d05df47c44d5cf2a31 (patch) | |
tree | e0a4a37e6e65d8206d8a4ba4cf84e7960166d798 | |
parent | 9fb53a15fb305ade32a9ff01c76f2f78df493611 (diff) | |
download | rockbox-7d67df94a6d1419daad6a5d05df47c44d5cf2a31.tar.gz rockbox-7d67df94a6d1419daad6a5d05df47c44d5cf2a31.zip |
Commit Davide Gentile's patch to make the Gigabeat F/X pad less finicky.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17549 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c b/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c index 5dde96d58a..8460e2970d 100644 --- a/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c +++ b/firmware/target/arm/s3c2440/gigabeat-fx/button-meg-fx.c | |||
@@ -126,16 +126,16 @@ int button_read_device(void) | |||
126 | touchpad = GPJDAT & 0x10C9; | 126 | touchpad = GPJDAT & 0x10C9; |
127 | if (touchpad) | 127 | if (touchpad) |
128 | { | 128 | { |
129 | if (touchpad & (1 << 0)) | 129 | if (touchpad & ((1 << 1) | (1 << 0))) |
130 | btn |= BUTTON_UP; | 130 | btn |= BUTTON_UP; |
131 | 131 | ||
132 | if (touchpad & (1 << 12)) | 132 | if (touchpad & ((1 << 12) | (1 << 11))) |
133 | btn |= BUTTON_RIGHT; | 133 | btn |= BUTTON_RIGHT; |
134 | 134 | ||
135 | if (touchpad & (1 << 6)) | 135 | if (touchpad & ((1 << 6) | (1 << 5))) |
136 | btn |= BUTTON_DOWN; | 136 | btn |= BUTTON_DOWN; |
137 | 137 | ||
138 | if (touchpad & (1 << 7)) | 138 | if (touchpad & ((1 << 8) | (1 << 7))) |
139 | btn |= BUTTON_LEFT; | 139 | btn |= BUTTON_LEFT; |
140 | 140 | ||
141 | if (touchpad & (1 << 3)) | 141 | if (touchpad & (1 << 3)) |