From a3c1ca1fa16f8ba021d7764717afb3f55bd074a2 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 6 May 2022 09:07:36 -0700
Subject: [PATCH] Added support for the Backbone One guide button
The guide button is activated on a long press (> 400ms)
---
src/joystick/iphoneos/SDL_mfijoystick.m | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/joystick/iphoneos/SDL_mfijoystick.m b/src/joystick/iphoneos/SDL_mfijoystick.m
index f7f0d072699..c55cf78873e 100644
--- a/src/joystick/iphoneos/SDL_mfijoystick.m
+++ b/src/joystick/iphoneos/SDL_mfijoystick.m
@@ -335,11 +335,7 @@ @interface GCMicroGamepad (SDL)
}
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;