Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #3218 from koying/fixdroidkeyboard

Various droid keyboard fixes
  • Loading branch information...
commit f73b5e918dab111217a32a3ba93138e7e66b3519 2 parents d9a897d + 39b84bd
Arne Morten Kvarving authored
View
5 xbmc/android/activity/AndroidExtra.h
@@ -27,3 +27,8 @@
#define AKEYCODE_CTRL_LEFT 113
#define AKEYCODE_CTRL_RIGHT 114
#define AKEYCODE_CAPS_LOCK 115
+#define AKEYCODE_SCROLL_LOCK 116
+#define AKEYCODE_INSERT 124
+#define AKEYCODE_FORWARD 125
+#define AKEYCODE_MEDIA_PLAY 126
+#define AKEYCODE_MEDIA_EJECT 129
View
9 xbmc/android/activity/AndroidKey.cpp
@@ -141,7 +141,12 @@ static KeyMap keyMap[] = {
{ AKEYCODE_FORWARD_DEL , XBMCK_DELETE },
{ AKEYCODE_CTRL_LEFT , XBMCK_LCTRL },
{ AKEYCODE_CTRL_RIGHT , XBMCK_RCTRL },
- { AKEYCODE_CAPS_LOCK , XBMCK_CAPSLOCK }
+ { AKEYCODE_CAPS_LOCK , XBMCK_CAPSLOCK },
+ { AKEYCODE_SCROLL_LOCK , XBMCK_SCROLLOCK },
+ { AKEYCODE_INSERT , XBMCK_INSERT },
+ { AKEYCODE_FORWARD , XBMCK_FASTFORWARD },
+ { AKEYCODE_MEDIA_PLAY , XBMCK_MEDIA_PLAY_PAUSE },
+ { AKEYCODE_MEDIA_EJECT , XBMCK_EJECT },
};
bool CAndroidKey::onKeyboardEvent(AInputEvent* event)
@@ -167,7 +172,7 @@ bool CAndroidKey::onKeyboardEvent(AInputEvent* event)
}
// check if this is a key we don't want to handle
- if (sym == XBMCK_LAST)
+ if (sym == XBMCK_LAST || sym == XBMCK_UNKNOWN)
return false;
uint16_t modifiers = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.