mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-02-22 07:37:56 +01:00
Fixed running on older versions of iOS
This commit is contained in:
parent
7ac827102a
commit
b0b12e46ba
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
|
- (SDL_Scancode)scancodeFromPress:(UIPress*)press
|
||||||
{
|
{
|
||||||
#ifdef __IPHONE_13_4
|
#ifdef __IPHONE_13_4
|
||||||
if (press.key != nil) {
|
if ([press respondsToSelector:@selector((key))]) {
|
||||||
return (SDL_Scancode)press.key.keyCode;
|
if (press.key != nil) {
|
||||||
}
|
return (SDL_Scancode)press.key.keyCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Presses from Apple TV remote */
|
/* Presses from Apple TV remote */
|
||||||
|
Loading…
Reference in New Issue
Block a user