mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 16:36:25 +00:00
Fixed running on older versions of iOS
This commit is contained in:
0
src/joystick/check_8bitdo.sh
Normal file → Executable file
0
src/joystick/check_8bitdo.sh
Normal file → Executable file
@@ -367,9 +367,11 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
|
||||
- (SDL_Scancode)scancodeFromPress:(UIPress*)press
|
||||
{
|
||||
#ifdef __IPHONE_13_4
|
||||
if ([press respondsToSelector:@selector((key))]) {
|
||||
if (press.key != nil) {
|
||||
return (SDL_Scancode)press.key.keyCode;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Presses from Apple TV remote */
|
||||
|
Reference in New Issue
Block a user