SDL_HINT_APP...LLOW_ROTATION(3)
π SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and lemme tell you, this page is short but it eats. β¨
πΈ NAME πΈ
SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION β a variable that controls whether the Apple TV remote's joystick axes will automatically match the rotation of the remote. yes, the remote knows which way is up, and you get to decide if it cares. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_hints.h>
#define SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION "SDL_APPLE_TV_REMOTE_ALLOW_ROTATION"
like, that's the whole thing. one include, one define. no cap. π«Ά
β¨ DESCRIPTION β¨
so the variable can be set to these values, and there are exactly two, no more, no less:
"0"β Remote orientation does not affect joystick axes. this one is the default, i.e. the vibe you get if you don't say anything. π"1"β Joystick axes are based on the orientation of the remote. it's giving "the joystick is a main character who follows the remote around". π
and here's the good part: this hint can be set anytime. not just at init, not just before some magic window closes. anytime. periodt. π
π AVAILABILITY π
this hint has been available since SDL 3.2.0. if you're on something older, bestie, it's simply not there. π
no warnings on this page, no bugs, no danger, nothing cursed. just a little toggle for your TV remote. slay. β
and that's the whole page, fr fr. brought to you by Simple Directmedia Layer π, version SDL 3.4.18, courtesy of the SDL3 FUNCTIONS manual β go forth and rotate responsibly. π§πΈ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms