Skip to content
This repository
Browse code

droid: add LCTRL, RCTRL and CAPSLOCK

  • Loading branch information...
commit f68634b7549d5089349867c2cbcd5cbf83a0950c 1 parent 02888fe
authored July 27, 2013
3  xbmc/android/activity/AndroidExtra.h
@@ -24,3 +24,6 @@
24 24
  //Additional defines from android.view.KeyEvent (http://developer.android.com/reference/android/view/KeyEvent.html)
25 25
 #define AKEYCODE_ESCAPE 111
26 26
 #define AKEYCODE_FORWARD_DEL 112
  27
+#define AKEYCODE_CTRL_LEFT 113
  28
+#define AKEYCODE_CTRL_RIGHT 114
  29
+#define AKEYCODE_CAPS_LOCK 115
3  xbmc/android/activity/AndroidKey.cpp
@@ -139,6 +139,9 @@ static KeyMap keyMap[] = {
139 139
   { AKEYCODE_BUTTON_MODE     , XBMCK_LAST },
140 140
   { AKEYCODE_ESCAPE          , XBMCK_ESCAPE },
141 141
   { AKEYCODE_FORWARD_DEL     , XBMCK_DELETE }
  142
+  { AKEYCODE_CTRL_LEFT       , XBMCK_LCTRL }
  143
+  { AKEYCODE_CTRL_RIGHT      , XBMCK_RCTRL }
  144
+  { AKEYCODE_CAPS_LOCK       , XBMCK_CAPSLOCK }
142 145
 };
143 146
 
144 147
 bool CAndroidKey::onKeyboardEvent(AInputEvent* event)

0 notes on commit f68634b

Please sign in to comment.
Something went wrong with that request. Please try again.