ACCELEROMETER_AS_JOYSTICK


Description:

[ Version ( since = "2.0.2" ) ]
[ CCode ( cname = "SDL_HINT_ACCELEROMETER_AS_JOYSTICK" ) ]
public const string ACCELEROMETER_AS_JOYSTICK

A variable controlling whether an Android built-in accelerometer should be listed as a joystick device, rather than listing actual joysticks only.

This variable can be set to the following 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).

Namespace: SDL.Hint
Package: sdl2