mirror of https://github.com/encounter/SDL.git
Fixed the Apple TV remote menu button on tvOS 13.2 (thanks Romain Tisserand)
This commit is contained in:
parent
7a51ad6a50
commit
135a90539b
|
@ -218,14 +218,9 @@ IOS_AddMFIJoystickDevice(SDL_JoystickDeviceItem *device, GCController *controlle
|
||||||
device->button_mask |= (1 << SDL_CONTROLLER_BUTTON_B); /* Button X on microGamepad */
|
device->button_mask |= (1 << SDL_CONTROLLER_BUTTON_B); /* Button X on microGamepad */
|
||||||
nbuttons += 2;
|
nbuttons += 2;
|
||||||
|
|
||||||
if ([gamepad respondsToSelector:@selector(buttonMenu)] && gamepad.buttonMenu) {
|
device->button_mask |= (1 << SDL_CONTROLLER_BUTTON_START);
|
||||||
device->button_mask |= (1 << SDL_CONTROLLER_BUTTON_START);
|
++nbuttons;
|
||||||
++nbuttons;
|
device->uses_pause_handler = SDL_TRUE;
|
||||||
} else {
|
|
||||||
device->button_mask |= (1 << SDL_CONTROLLER_BUTTON_START);
|
|
||||||
++nbuttons;
|
|
||||||
device->uses_pause_handler = SDL_TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
vendor = VENDOR_APPLE;
|
vendor = VENDOR_APPLE;
|
||||||
product = 3;
|
product = 3;
|
||||||
|
|
Loading…
Reference in New Issue