mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fixed trying to add a game controller mapping for the accelerometer on iOS
Fixes https://github.com/libsdl-org/SDL/issues/8716
(cherry picked from commit 0e5ea3cc4b
)
This commit is contained in:
@@ -1834,6 +1834,9 @@ static SDL_bool IOS_JoystickGetGamepadMapping(int device_index, SDL_GamepadMappi
|
||||
if (device == NULL) {
|
||||
return SDL_FALSE;
|
||||
}
|
||||
if (device->accelerometer) {
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
if (@available(macOS 10.16, iOS 14.0, tvOS 14.0, *)) {
|
||||
int axis = 0;
|
||||
|
Reference in New Issue
Block a user