Skip to content

Commit

Permalink
Fixed the Apple TV remote menu button on tvOS 13.2 (thanks Romain Tis…
Browse files Browse the repository at this point in the history
…serand)
  • Loading branch information
slouken committed Dec 6, 2019
1 parent 7a51ad6 commit 135a905
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/joystick/iphoneos/SDL_sysjoystick.m
Expand Up @@ -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;
Expand Down

0 comments on commit 135a905

Please sign in to comment.