diff options
author | davilla <davilla@4pi.com> | 2013-07-27 21:11:15 -0400 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2013-07-27 21:12:51 -0400 |
commit | f68634b7549d5089349867c2cbcd5cbf83a0950c (patch) | |
tree | 2aaf6e6e3eb1c881ee0015510de57849c2ef2ae4 | |
parent | 02888fedb0ccf2da7ad2d42f3aa3f95e47c51131 (diff) |
droid: add LCTRL, RCTRL and CAPSLOCK
-rw-r--r-- | xbmc/android/activity/AndroidExtra.h | 3 | ||||
-rw-r--r-- | xbmc/android/activity/AndroidKey.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/xbmc/android/activity/AndroidExtra.h b/xbmc/android/activity/AndroidExtra.h index c775bab08b..c013eb904b 100644 --- a/xbmc/android/activity/AndroidExtra.h +++ b/xbmc/android/activity/AndroidExtra.h @@ -24,3 +24,6 @@ //Additional defines from android.view.KeyEvent (http://developer.android.com/reference/android/view/KeyEvent.html) #define AKEYCODE_ESCAPE 111 #define AKEYCODE_FORWARD_DEL 112 +#define AKEYCODE_CTRL_LEFT 113 +#define AKEYCODE_CTRL_RIGHT 114 +#define AKEYCODE_CAPS_LOCK 115 diff --git a/xbmc/android/activity/AndroidKey.cpp b/xbmc/android/activity/AndroidKey.cpp index bbadc0a572..c3e2eadf6d 100644 --- a/xbmc/android/activity/AndroidKey.cpp +++ b/xbmc/android/activity/AndroidKey.cpp @@ -139,6 +139,9 @@ static KeyMap keyMap[] = { { AKEYCODE_BUTTON_MODE , XBMCK_LAST }, { AKEYCODE_ESCAPE , XBMCK_ESCAPE }, { AKEYCODE_FORWARD_DEL , XBMCK_DELETE } + { AKEYCODE_CTRL_LEFT , XBMCK_LCTRL } + { AKEYCODE_CTRL_RIGHT , XBMCK_RCTRL } + { AKEYCODE_CAPS_LOCK , XBMCK_CAPSLOCK } }; bool CAndroidKey::onKeyboardEvent(AInputEvent* event) |