Android: Added new key codes from API 24.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 09 Jul 2016 22:06:00 +0200
changeset 10191 4c5c73f91e49
parent 10190 a6ad6813b17b
child 10192 3a5779b13f69
Android: Added new key codes from API 24.
src/video/android/SDL_androidkeyboard.c
--- a/src/video/android/SDL_androidkeyboard.c	Sat Jul 02 13:38:31 2016 -0300
+++ b/src/video/android/SDL_androidkeyboard.c	Sat Jul 09 22:06:00 2016 +0200
@@ -304,18 +304,22 @@
     SDL_SCANCODE_UNKNOWN, /* AKEYCODE_NAVIGATE_NEXT */
     SDL_SCANCODE_UNKNOWN, /* AKEYCODE_NAVIGATE_IN */
     SDL_SCANCODE_UNKNOWN, /* AKEYCODE_NAVIGATE_OUT */
-    SDL_SCANCODE_UNKNOWN,
-    SDL_SCANCODE_UNKNOWN,
-    SDL_SCANCODE_UNKNOWN,
-    SDL_SCANCODE_UNKNOWN,
-    SDL_SCANCODE_UNKNOWN,
-    SDL_SCANCODE_UNKNOWN,
-    SDL_SCANCODE_UNKNOWN,
-    SDL_SCANCODE_UNKNOWN,
+    SDL_SCANCODE_UNKNOWN, /* AKEYCODE_STEM_PRIMARY */
+    SDL_SCANCODE_UNKNOWN, /* AKEYCODE_STEM_1 */
+    SDL_SCANCODE_UNKNOWN, /* AKEYCODE_STEM_2 */
+    SDL_SCANCODE_UNKNOWN, /* AKEYCODE_STEM_3 */
+    SDL_SCANCODE_UNKNOWN, /* AKEYCODE_DPAD_UP_LEFT */
+    SDL_SCANCODE_UNKNOWN, /* AKEYCODE_DPAD_DOWN_LEFT */
+    SDL_SCANCODE_UNKNOWN, /* AKEYCODE_DPAD_UP_RIGHT */
+    SDL_SCANCODE_UNKNOWN, /* AKEYCODE_DPAD_DOWN_RIGHT */
     SDL_SCANCODE_UNKNOWN, /* AKEYCODE_MEDIA_SKIP_FORWARD */
     SDL_SCANCODE_UNKNOWN, /* AKEYCODE_MEDIA_SKIP_BACKWARD */
     SDL_SCANCODE_UNKNOWN, /* AKEYCODE_MEDIA_STEP_FORWARD */
     SDL_SCANCODE_UNKNOWN, /* AKEYCODE_MEDIA_STEP_BACKWARD */
+    SDL_SCANCODE_UNKNOWN, /* AKEYCODE_SOFT_SLEEP */
+    SDL_SCANCODE_CUT, /* AKEYCODE_CUT */
+    SDL_SCANCODE_COPY, /* AKEYCODE_COPY */
+    SDL_SCANCODE_PASTE, /* AKEYCODE_PASTE */
 };
 
 static SDL_Scancode