mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 03:40:24 +00:00
iOS needs to targets 13 due to some keyboard emulation, but tvOS does not
This commit is contained in:
parent
fe529ff591
commit
d5a86e2363
@ -96,7 +96,7 @@ static void apple_gamecontroller_joypad_poll_internal(GCController *controller,
|
||||
*buttons |= gp.leftTrigger.pressed ? (1 << RETRO_DEVICE_ID_JOYPAD_L2) : 0;
|
||||
*buttons |= gp.rightTrigger.pressed ? (1 << RETRO_DEVICE_ID_JOYPAD_R2) : 0;
|
||||
#if OSX || __IPHONE_OS_VERSION_MAX_ALLOWED >= 120100 || __TV_OS_VERSION_MAX_ALLOWED >= 120100
|
||||
if (@available(iOS 12.1, macOS 10.15, *))
|
||||
if (@available(iOS 12.1, macOS 10.15, tvOS 12.1, *))
|
||||
{
|
||||
*buttons |= gp.leftThumbstickButton.pressed ? (1 << RETRO_DEVICE_ID_JOYPAD_L3) : 0;
|
||||
*buttons |= gp.rightThumbstickButton.pressed ? (1 << RETRO_DEVICE_ID_JOYPAD_R3) : 0;
|
||||
|
@ -1979,7 +1979,7 @@
|
||||
SDKROOT = appletvos;
|
||||
SRCBASE = "$(SRCROOT)/../..";
|
||||
TARGETED_DEVICE_FAMILY = 3;
|
||||
TVOS_DEPLOYMENT_TARGET = 12.1;
|
||||
TVOS_DEPLOYMENT_TARGET = 11.0;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@ -2141,7 +2141,7 @@
|
||||
SDKROOT = appletvos;
|
||||
SRCBASE = "$(SRCROOT)/../..";
|
||||
TARGETED_DEVICE_FAMILY = 3;
|
||||
TVOS_DEPLOYMENT_TARGET = 12.1;
|
||||
TVOS_DEPLOYMENT_TARGET = 11.0;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
@ -294,7 +294,7 @@ enum
|
||||
- (void)sendEvent:(UIEvent *)event
|
||||
{
|
||||
[super sendEvent:event];
|
||||
if (@available(iOS 13.4, *)) {
|
||||
if (@available(iOS 13.4, tvOS 13.4, *)) {
|
||||
if (event.type == UIEventTypeHover)
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user