Switch the menu button on the Apple TV remote to the B button to match UI guidelines
parent
0fe5713964
commit
64939d3586
|
@ -638,8 +638,8 @@ static BOOL IOS_AddMFIJoystickDevice(SDL_JoystickDeviceItem *device, GCControlle
|
||||||
int nbuttons = 0;
|
int nbuttons = 0;
|
||||||
|
|
||||||
device->button_mask |= (1 << SDL_GAMEPAD_BUTTON_SOUTH);
|
device->button_mask |= (1 << SDL_GAMEPAD_BUTTON_SOUTH);
|
||||||
device->button_mask |= (1 << SDL_GAMEPAD_BUTTON_EAST); /* Button X on microGamepad */
|
device->button_mask |= (1 << SDL_GAMEPAD_BUTTON_WEST); /* Button X on microGamepad */
|
||||||
device->button_mask |= (1 << SDL_GAMEPAD_BUTTON_START);
|
device->button_mask |= (1 << SDL_GAMEPAD_BUTTON_EAST);
|
||||||
nbuttons += 3;
|
nbuttons += 3;
|
||||||
device->pause_button_index = (nbuttons - 1);
|
device->pause_button_index = (nbuttons - 1);
|
||||||
|
|
||||||
|
@ -1965,7 +1965,11 @@ static SDL_bool IOS_JoystickGetGamepadMapping(int device_index, SDL_GamepadMappi
|
||||||
} else if ([(NSString *)key isEqualToString:GCInputButtonHome]) {
|
} else if ([(NSString *)key isEqualToString:GCInputButtonHome]) {
|
||||||
mapping = &out->guide;
|
mapping = &out->guide;
|
||||||
} else if ([(NSString *)key isEqualToString:GCInputButtonMenu]) {
|
} else if ([(NSString *)key isEqualToString:GCInputButtonMenu]) {
|
||||||
mapping = &out->start;
|
if (device->is_siri_remote) {
|
||||||
|
mapping = &out->b;
|
||||||
|
} else {
|
||||||
|
mapping = &out->start;
|
||||||
|
}
|
||||||
} else if ([(NSString *)key isEqualToString:GCInputButtonOptions]) {
|
} else if ([(NSString *)key isEqualToString:GCInputButtonOptions]) {
|
||||||
mapping = &out->back;
|
mapping = &out->back;
|
||||||
} else if ([(NSString *)key isEqualToString:GCInputButtonShare]) {
|
} else if ([(NSString *)key isEqualToString:GCInputButtonShare]) {
|
||||||
|
|
Loading…
Reference in New Issue