## page was renamed from SDL_HINT_ACCEL_AS_JOY #pragma section-numbers off #pragma camelcase off ##*^*^*^*^*See http://wiki.libsdl.org/moin.cgi/SGEnumerations for details on editing this page*^*^*^*^* = 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 == {{{#!highlight cpp #include "SDL.h" int main(int argc, char* argv[]) { // This disables the use of gyroscopes as axis device SDL_SetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK, "0"); } }}} ##Leave this section as-is unless you have a code example to put in. In that case, replace You can add your code example here with your code example following the Style Guide instructions. Leave the rest of the markup alone and delete this comment. == Remarks == The hint is supported for iOS since SDL 2.0.4. ##Leave this section as-is unless you have a remark to put in. In that case, replace ''You can add useful comments here'' with your remark(s) following the Style Guide instructions. Leave the rest of the markup alone and delete this comment. == Version == This hint is available since SDL 2.0.2. ---- [[CategoryDefine]], [[CategoryHints]] ##See the Style Guide for instructions on editing the footer.