Fixed running on older versions of iOS

This commit is contained in:
Sam Lantinga committed 2020-04-27 13:31:10 -07:00
1 parent 7ac827102a
commit b0b12e46ba
2 files changed
+5 -3

No files matched your search

Regular → Executable
View File
File mode changed.
+5 -3
View File
@@ -367,9 +367,11 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
- (SDL_Scancode)scancodeFromPress:(UIPress*)press
{
#ifdef __IPHONE_13_4
if (press.key != nil) {
return (SDL_Scancode)press.key.keyCode;
}
if ([press respondsToSelector:@selector((key))]) {
if (press.key != nil) {
return (SDL_Scancode)press.key.keyCode;
}
}
#endif
/* Presses from Apple TV remote */