summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8700/ipodnano2g
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2023-10-01 09:57:08 -0400
committerSolomon Peachy <pizza@shaftnet.org>2023-10-06 11:31:59 -0400
commit57713f6308b2ac09e05684930825650b96cc325c (patch)
tree3fa47c7a3928a0cb53037a862d116316679cd395 /firmware/target/arm/s5l8700/ipodnano2g
parent17a8a54780dd622d135f7c94433025f549821255 (diff)
downloadrockbox-57713f6308b2ac09e05684930825650b96cc325c.tar.gz
rockbox-57713f6308b2ac09e05684930825650b96cc325c.zip
ipod: Support IAP remote MENU/SELECT/UP/DOWN keys in MODE2
Only the primary contexts (standard, wps, quckscreen, tree, radio) handle the new keys so far. Todo contexts: Settings, keyboard, pitchscreen, bookmark, & recording. Available docs for MODE4 don't list anything other than playback controls, so it's not clear if there is a path forward here. Change-Id: I91908092f75d96813e2e155e447129ba15f58051
Diffstat (limited to 'firmware/target/arm/s5l8700/ipodnano2g')
-rw-r--r--firmware/target/arm/s5l8700/ipodnano2g/button-target.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/button-target.h b/firmware/target/arm/s5l8700/ipodnano2g/button-target.h
index 82f600d302..75bc191608 100644
--- a/firmware/target/arm/s5l8700/ipodnano2g/button-target.h
+++ b/firmware/target/arm/s5l8700/ipodnano2g/button-target.h
@@ -47,15 +47,20 @@ void ipod_4g_button_int(void);
47 47
48 /* Remote control's buttons */ 48 /* Remote control's buttons */
49#ifdef IPOD_ACCESSORY_PROTOCOL 49#ifdef IPOD_ACCESSORY_PROTOCOL
50#define BUTTON_RC_DOWN 0x01000000
51#define BUTTON_RC_UP 0x00800000
52#define BUTTON_RC_SELECT 0x00400000
53#define BUTTON_RC_MENU 0x00200000
50#define BUTTON_RC_PLAY 0x00100000 54#define BUTTON_RC_PLAY 0x00100000
51#define BUTTON_RC_STOP 0x00080000 55#define BUTTON_RC_STOP 0x00080000
52
53#define BUTTON_RC_LEFT 0x00040000 56#define BUTTON_RC_LEFT 0x00040000
54#define BUTTON_RC_RIGHT 0x00020000 57#define BUTTON_RC_RIGHT 0x00020000
55#define BUTTON_RC_VOL_UP 0x00010000 58#define BUTTON_RC_VOL_UP 0x00010000
56#define BUTTON_RC_VOL_DOWN 0x00008000 59#define BUTTON_RC_VOL_DOWN 0x00008000
57 60
58#define BUTTON_REMOTE (BUTTON_RC_PLAY|BUTTON_RC_STOP\ 61#define BUTTON_REMOTE (BUTTON_RC_UP|BUTTON_RC_DOWN \
62 |BUTTON_RC_SELECT|BUTTON_RC_PLAY \
63 |BUTTON_RC_PLAY|BUTTON_RC_STOP \
59 |BUTTON_RC_LEFT|BUTTON_RC_RIGHT\ 64 |BUTTON_RC_LEFT|BUTTON_RC_RIGHT\
60 |BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN) 65 |BUTTON_RC_VOL_UP|BUTTON_RC_VOL_DOWN)
61#endif 66#endif