summaryrefslogtreecommitdiffstats
path: root/apps/iap/iap-lingo2.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/iap/iap-lingo2.c')
-rw-r--r--apps/iap/iap-lingo2.c11
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)
REMOTE_BUTTON(BUTTON_RC_RIGHT);
if(buf[4] & 32) /* frwd */
REMOTE_BUTTON(BUTTON_RC_LEFT);
+ if(buf[4] & 64) /* menu */
+ REMOTE_BUTTON(BUTTON_RC_MENU);
+ if(buf[4] & 128) /* select */
+ REMOTE_BUTTON(BUTTON_RC_SELECT);
+ }
+ else if(len >= 6 && buf[5] != 0)
+ {
+ if(buf[5] & 1) /* up */
+ REMOTE_BUTTON(BUTTON_RC_UP);
+ if (buf[5] & 2) /* down */
+ REMOTE_BUTTON(BUTTON_RC_DOWN);
}
/* power on released */