diff options
Diffstat (limited to 'firmware/target')
-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)) |