mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
uikit: Patched to compile on older iOS SDKs.
This commit is contained in:
parent
93a2c58c7e
commit
de6d0ac55a
@ -69,7 +69,7 @@ extern int SDL_AppleTVRemoteOpenedAsJoystick;
|
||||
UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeGesture:)];
|
||||
swipeRight.direction = UISwipeGestureRecognizerDirectionRight;
|
||||
[self addGestureRecognizer:swipeRight];
|
||||
#else
|
||||
#elif defined(__IPHONE_13_4)
|
||||
if (@available(iOS 13.4, *)) {
|
||||
UIPanGestureRecognizer *mouseWheelRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(mouseWheelGesture:)];
|
||||
mouseWheelRecognizer.allowedScrollTypesMask = UIScrollTypeMaskDiscrete;
|
||||
|
Loading…
Reference in New Issue
Block a user