Added the concept of display natural orientation
Also renamed SDL_GetDisplayOrientation() SDL_GetDisplayCurrentOrientation() The natural orientation of the primary display is the frame of reference for accelerometer and gyro sensor readings.
This commit is contained in:
@@ -96,7 +96,7 @@ typedef enum
|
||||
*
|
||||
* The axis data is not changed when the device is rotated.
|
||||
*
|
||||
* \sa SDL_GetDisplayOrientation()
|
||||
* \sa SDL_GetDisplayCurrentOrientation()
|
||||
*/
|
||||
#define SDL_STANDARD_GRAVITY 9.80665f
|
||||
|
||||
@@ -120,7 +120,7 @@ typedef enum
|
||||
*
|
||||
* The axis data is not changed when the device is rotated.
|
||||
*
|
||||
* \sa SDL_GetDisplayOrientation()
|
||||
* \sa SDL_GetDisplayCurrentOrientation()
|
||||
*/
|
||||
|
||||
/* Function prototypes */
|
||||
|
||||
Reference in New Issue
Block a user