diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2023-10-01 09:57:08 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2023-10-06 11:31:59 -0400 |
commit | 57713f6308b2ac09e05684930825650b96cc325c (patch) | |
tree | 3fa47c7a3928a0cb53037a862d116316679cd395 /apps/iap/iap-lingo2.c | |
parent | 17a8a54780dd622d135f7c94433025f549821255 (diff) | |
download | rockbox-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 'apps/iap/iap-lingo2.c')
-rw-r--r-- | apps/iap/iap-lingo2.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/iap/iap-lingo2.c b/apps/iap/iap-lingo2.c index 946e51222d..51f951c6d9 100644 --- a/apps/iap/iap-lingo2.c +++ b/apps/iap/iap-lingo2.c | |||
@@ -187,6 +187,17 @@ void iap_handlepkt_mode2(const unsigned int len, const unsigned char *buf) | |||
187 | REMOTE_BUTTON(BUTTON_RC_RIGHT); | 187 | REMOTE_BUTTON(BUTTON_RC_RIGHT); |
188 | if(buf[4] & 32) /* frwd */ | 188 | if(buf[4] & 32) /* frwd */ |
189 | REMOTE_BUTTON(BUTTON_RC_LEFT); | 189 | REMOTE_BUTTON(BUTTON_RC_LEFT); |
190 | if(buf[4] & 64) /* menu */ | ||
191 | REMOTE_BUTTON(BUTTON_RC_MENU); | ||
192 | if(buf[4] & 128) /* select */ | ||
193 | REMOTE_BUTTON(BUTTON_RC_SELECT); | ||
194 | } | ||
195 | else if(len >= 6 && buf[5] != 0) | ||
196 | { | ||
197 | if(buf[5] & 1) /* up */ | ||
198 | REMOTE_BUTTON(BUTTON_RC_UP); | ||
199 | if (buf[5] & 2) /* down */ | ||
200 | REMOTE_BUTTON(BUTTON_RC_DOWN); | ||
190 | } | 201 | } |
191 | 202 | ||
192 | /* power on released */ | 203 | /* power on released */ |