iOS needs to targets 13 due to some keyboard emulation, but tvOS does not

This commit is contained in:
Eric Warmenhoven 2023-05-11 10:52:44 -04:00 committed by LibretroAdmin
parent fe529ff591
commit d5a86e2363
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;
};

View File

@ -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;
}