Skip to content

Commit

Permalink
Pandora port: Add support for the L/R shoulder buttons
Browse files Browse the repository at this point in the history
Change-Id: I18d5998dbcf7347549008fb9e52679b65fbf7e4f
  • Loading branch information
thomasjfox committed Mar 2, 2012
1 parent 46b34da commit 57264ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions firmware/target/hosted/sdl/app/button-application.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 57264ce

Please sign in to comment.