From 135a90539b1d0816cd856809f212eefc38005193 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 6 Dec 2019 13:48:13 -0800 Subject: [PATCH] Fixed the Apple TV remote menu button on tvOS 13.2 (thanks Romain Tisserand) --- src/joystick/iphoneos/SDL_sysjoystick.m | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/joystick/iphoneos/SDL_sysjoystick.m b/src/joystick/iphoneos/SDL_sysjoystick.m index 913b354d6f122..daaf6a73deab9 100644 --- a/src/joystick/iphoneos/SDL_sysjoystick.m +++ b/src/joystick/iphoneos/SDL_sysjoystick.m @@ -218,14 +218,9 @@ @interface GCMicroGamepad (SDL) device->button_mask |= (1 << SDL_CONTROLLER_BUTTON_B); /* Button X on microGamepad */ nbuttons += 2; - if ([gamepad respondsToSelector:@selector(buttonMenu)] && gamepad.buttonMenu) { - device->button_mask |= (1 << SDL_CONTROLLER_BUTTON_START); - ++nbuttons; - } else { - device->button_mask |= (1 << SDL_CONTROLLER_BUTTON_START); - ++nbuttons; - device->uses_pause_handler = SDL_TRUE; - } + device->button_mask |= (1 << SDL_CONTROLLER_BUTTON_START); + ++nbuttons; + device->uses_pause_handler = SDL_TRUE; vendor = VENDOR_APPLE; product = 3;