replaced obsolete joystick calibration with game controller configuration
[rocksndiamonds.git] / src / tools.c
index 596aa5d0d68ef665c149a66e4d344dfac3daf74c..31ae317a3104eb985dbc59e773b0a819acdbda25 100644 (file)
@@ -3759,6 +3759,10 @@ void WaitForEventToContinue()
       {
        case EVENT_BUTTONPRESS:
        case EVENT_KEYPRESS:
+#if defined(TARGET_SDL2)
+        case SDL_CONTROLLERBUTTONDOWN:
+#endif
+        case SDL_JOYBUTTONDOWN:
          still_wait = FALSE;
          break;
 
@@ -3912,7 +3916,11 @@ static int RequestHandleEvents(unsigned int req_state)
 
              case KSYM_Return:
 #if defined(TARGET_SDL2)
+             case KSYM_Select:
              case KSYM_Menu:
+#if defined(KSYM_Rewind)
+             case KSYM_Rewind:         /* for Amazon Fire TV remote */
+#endif
 #endif
                result = 1;
                break;
@@ -3920,6 +3928,9 @@ static int RequestHandleEvents(unsigned int req_state)
              case KSYM_Escape:
 #if defined(TARGET_SDL2)
              case KSYM_Back:
+#if defined(KSYM_FastForward)
+             case KSYM_FastForward:    /* for Amazon Fire TV remote */
+#endif
 #endif
                result = 0;
                break;
@@ -3963,6 +3974,7 @@ static int RequestHandleEvents(unsigned int req_state)
            break;
 
          case SDL_CONTROLLERBUTTONUP:
+           HandleJoystickEvent(&event);
            ClearPlayerAction();
            break;
 #endif