diff options
Diffstat (limited to 'apps/iap')
-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 */ |