Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2014-02-15 21:41:15
Size: 1536
Comment: Created page using content from SDL_hints.h.
Revision 2 as of 2014-02-25 21:56:57
Size: 1479
Comment: Removed DRAFT by request, see docs mailing list.
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||

SDL_HINT_ACCEL_AS_JOY

A hint that specifies whether an Android 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

You can add useful comments here

Version

This hint is available since SDL 2.0.2.


CategoryDefine, CategoryHints

None: SDL_HINT_ACCELEROMETER_AS_JOYSTICK (last edited 2020-10-12 07:02:08 by gerstrong)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit