Pārlūkot izejas kodu

Added support for the Backbone One guide button

The guide button is activated on a long press (> 400ms)
Sam Lantinga 2 gadi atpakaļ
vecāks
revīzija
a3c1ca1fa1
1 mainītis faili ar 1 papildinājumiem un 5 dzēšanām
  1. 1 5
      src/joystick/iphoneos/SDL_mfijoystick.m

+ 1 - 5
src/joystick/iphoneos/SDL_mfijoystick.m

@@ -335,11 +335,7 @@ IOS_AddMFIJoystickDevice(SDL_JoystickDeviceItem *device, GCController *controlle
         }
 
         if (SDL_strcmp(name, "Backbone One") == 0) {
-            /* The Backbone app uses the guide and share buttons */
-            if ((device->button_mask & (1 << SDL_CONTROLLER_BUTTON_GUIDE)) != 0) {
-                device->button_mask &= ~(1 << SDL_CONTROLLER_BUTTON_GUIDE);
-                --nbuttons;
-            }
+            /* The Backbone app uses share button */
             if ((device->button_mask & (1 << SDL_CONTROLLER_BUTTON_MISC1)) != 0) {
                 device->button_mask &= ~(1 << SDL_CONTROLLER_BUTTON_MISC1);
                 --nbuttons;