|
Size: 1540
Comment: Updated title.
|
Size: 1557
Comment: Updated with content from header file and added remark.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 9: | Line 9: |
| A hint that specifies whether an Android built-in accelerometer should be listed as a joystick device, rather than listing actual joysticks only. | A hint that specifies whether the Android / iOS built-in accelerometer should be listed as a joystick device, rather than listing actual joysticks only. |
| Line 33: | Line 33: |
| ''You can add useful comments here'' | The hint is supported for iOS since SDL 2.0.4. |
SDL_HINT_ACCELEROMETER_AS_JOYSTICK
A hint that specifies whether the Android / iOS built-in accelerometer should be listed as a joystick device, rather than listing actual joysticks only.
Values
0 |
list only real joysticks and accept input from them |
1 |
list real joysticks along with the accelerometer as if it were a 3 axis joystick (the default) |
Default
By default SDL will list real joysticks along with the accelerometer as if it were a 3 axis joystick.
Code Examples
You can add your code example here
Remarks
The hint is supported for iOS since SDL 2.0.4.
Version
This hint is available since SDL 2.0.2.
