Skip to content
Permalink
Browse files

Fixed running on older versions of iOS

  • Loading branch information
slouken committed Apr 27, 2020
1 parent 7ac8271 commit b0b12e46ba0798331b7c871b0fe1bdb8e682d8a3
Showing with 5 additions and 3 deletions.
  1. 0 src/joystick/check_8bitdo.sh
  2. +5 −3 src/video/uikit/SDL_uikitview.m
0 src/joystick/check_8bitdo.sh 100644 → 100755
Empty file.
@@ -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 */

0 comments on commit b0b12e4

Please sign in to comment.