Permalink
Browse files

Pandora port: Add support for the L/R shoulder buttons

Change-Id: I18d5998dbcf7347549008fb9e52679b65fbf7e4f
  • Loading branch information...
1 parent 46b34da commit 57264cef43f89421278740dbab86c838b2cebb07 @thomasjfox thomasjfox committed Mar 2, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 firmware/target/hosted/sdl/app/button-application.c
@@ -46,6 +46,9 @@ int key_to_button(int keyboard_key)
case SDLK_KP9:
new_btn = BUTTON_TOPRIGHT;
break;
+#if (CONFIG_PLATFORM & PLATFORM_PANDORA)
+ case SDLK_RSHIFT:
+#endif
case SDLK_KP4:
case SDLK_LEFT:
new_btn = BUTTON_MIDLEFT;
@@ -57,6 +60,9 @@ int key_to_button(int keyboard_key)
case SDLK_KP5:
new_btn = BUTTON_CENTER;
break;
+#if (CONFIG_PLATFORM & PLATFORM_PANDORA)
+ case SDLK_RCTRL:
+#endif
case SDLK_KP6:
case SDLK_RIGHT:
new_btn = BUTTON_MIDRIGHT;

0 comments on commit 57264ce

Please sign in to comment.