Skip to content

Commit

Permalink
Fixed running on older versions of iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Apr 27, 2020
1 parent 7ac8271 commit b0b12e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Empty file modified src/joystick/check_8bitdo.sh 100644 → 100755
Empty file.
8 changes: 5 additions & 3 deletions src/video/uikit/SDL_uikitview.m
Expand Up @@ -367,9 +367,11 @@ - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
- (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 */
Expand Down

0 comments on commit b0b12e4

Please sign in to comment.