summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/button.c1
-rw-r--r--firmware/export/button.h9
2 files changed, 0 insertions, 10 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index d86b8d8d2d..dbdb171bf2 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -359,7 +359,6 @@ static int ipod_3g_button_read(void)
359 359
360 if ((state & 0x20) == 0) { 360 if ((state & 0x20) == 0) {
361 /* 3g hold switch is active low */ 361 /* 3g hold switch is active low */
362 btn |= BUTTON_HOLD;
363 was_hold = 1; 362 was_hold = 1;
364 /* hold switch on 3g causes all outputs to go low */ 363 /* hold switch on 3g causes all outputs to go low */
365 /* we shouldn't interpret these as key presses */ 364 /* we shouldn't interpret these as key presses */
diff --git a/firmware/export/button.h b/firmware/export/button.h
index 90edd05d51..02d91d6a9b 100644
--- a/firmware/export/button.h
+++ b/firmware/export/button.h
@@ -221,18 +221,9 @@ bool remote_button_hold(void);
221 221
222#define BUTTON_PLAY 0x00000040 222#define BUTTON_PLAY 0x00000040
223 223
224#if CONFIG_KEYPAD == IPOD_3G_PAD
225#define BUTTON_HOLD 0x00000100
226/* TODO Does the BUTTON_HOLD need to be here? */
227#define BUTTON_MAIN (BUTTON_SELECT|BUTTON_MENU\
228 |BUTTON_LEFT|BUTTON_RIGHT\
229 |BUTTON_SCROLL_FWD|BUTTON_SCROLL_BACK\
230 |BUTTON_PLAY|BUTTON_HOLD)
231#else
232#define BUTTON_MAIN (BUTTON_SELECT|BUTTON_MENU\ 224#define BUTTON_MAIN (BUTTON_SELECT|BUTTON_MENU\
233 |BUTTON_LEFT|BUTTON_RIGHT|BUTTON_SCROLL_FWD\ 225 |BUTTON_LEFT|BUTTON_RIGHT|BUTTON_SCROLL_FWD\
234 |BUTTON_SCROLL_BACK|BUTTON_PLAY) 226 |BUTTON_SCROLL_BACK|BUTTON_PLAY)
235#endif
236 227
237#define BUTTON_REMOTE 0 228#define BUTTON_REMOTE 0
238 229