src/joystick/android/SDL_sysjoystick.c
changeset 11778 db38a635e2c6
parent 11671 3dc400fafd76
child 11811 5d94cb6b24d3
     1.1 --- a/src/joystick/android/SDL_sysjoystick.c	Sat Dec 16 10:40:41 2017 -0800
     1.2 +++ b/src/joystick/android/SDL_sysjoystick.c	Sat Dec 16 10:40:43 2017 -0800
     1.3 @@ -78,7 +78,7 @@
     1.4  static int
     1.5  keycode_to_SDL(int keycode)
     1.6  {
     1.7 -    /* FIXME: If this function gets too unwiedly in the future, replace with a lookup table */
     1.8 +    /* FIXME: If this function gets too unwieldy in the future, replace with a lookup table */
     1.9      int button = 0;
    1.10      switch(keycode) 
    1.11      {
    1.12 @@ -110,6 +110,7 @@
    1.13          case AKEYCODE_BUTTON_START:
    1.14              button = SDL_CONTROLLER_BUTTON_START;
    1.15              break;
    1.16 +        case AKEYCODE_BACK:
    1.17          case AKEYCODE_BUTTON_SELECT:
    1.18              button = SDL_CONTROLLER_BUTTON_BACK;
    1.19              break;
    1.20 @@ -148,10 +149,6 @@
    1.21              button = SDL_CONTROLLER_BUTTON_A;
    1.22              break;
    1.23  
    1.24 -        case AKEYCODE_BACK:
    1.25 -            button = SDL_CONTROLLER_BUTTON_B;
    1.26 -            break;
    1.27 -
    1.28          /* More gamepad buttons (API 12), these get mapped to 20...35*/
    1.29          case AKEYCODE_BUTTON_1:
    1.30          case AKEYCODE_BUTTON_2: