diff options
author | Sam Lantinga <slouken@libsdl.org> | 2014-06-25 00:20:21 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2014-06-25 00:20:21 -0700 |
commit | 5a816a6c2c6ac43da4254d29d3ecc279d6bdd1b4 (patch) | |
tree | 48fdbbb2a17d46ec44232deec523c00cea6b2dde /include/SDL_config_iphoneos.h | |
parent | b09fd2c55081518c2160c5b9eb4a583fe53851ea (diff) |
Fixed bug 2603 - iOS: update joystick accelerometer code to use CoreMotion instead of the deprecated UIAccelerometer
Alex Szpakowski
SDL's code for exposing the accelerometer as a joystick on iOS currently uses UIAccelerometer, which was superseded by the CoreMotion framework and deprecated since iOS 5.
The UIAccelerometer code still works (for now), but it also throws deprecation warnings whenever SDL is built for iOS, since SDL's deployment target is no longer below iOS 5.
I've created a patch which replaces the old UIAccelerometer code with a replacement based on the CoreMotion framework. It has identical functionality (to SDL users), however iOS apps are now required to link to the CoreMotion framework when using SDL.
Diffstat (limited to 'include/SDL_config_iphoneos.h')
-rw-r--r-- | include/SDL_config_iphoneos.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/SDL_config_iphoneos.h b/include/SDL_config_iphoneos.h index 7ffb1c55be..11fd722ffe 100644 --- a/include/SDL_config_iphoneos.h +++ b/include/SDL_config_iphoneos.h @@ -149,7 +149,7 @@ #define SDL_JOYSTICK_DISABLED 0 /* Set max recognized G-force from accelerometer - See src/joystick/uikit/SDLUIAccelerationDelegate.m for notes on why this is needed + See src/joystick/uikit/SDL_sysjoystick.m for notes on why this is needed */ #define SDL_IPHONE_MAX_GFORCE 5.0 |