SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS(3)
๐ SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS ๐
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS ๐๐บ
โจ NAME โจ
SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS โ a variable that controls whether controllers used with the Apple TV generate UI events ๐ฎ๐
๐ธ SYNOPSIS ๐ธ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_APPLE_TV_CONTROLLER_UI_EVENTS "SDL_APPLE_TV_CONTROLLER_UI_EVENTS"
๐ฆ DESCRIPTION ๐ฆ
so here's the tea โ โ when UI events are generated by controller input, the app will get backgrounded when the Apple TV remote's menu button is pressed, and also when the pause or B buttons on gamepads are pressed. literally just yeeted to the background, no cap ๐ญ
if you want more info about properly making use of controllers for the Apple TV, it's all right here:
https://developer.apple.com/tvos/human-interface-guidelines/remote-and-controllers/
the variable can be set to the following values, bestie:
"0"โ controller input does not generate UI events. (this is the default ๐)"1"โ controller input does generate UI events. slay โจ
this hint can be set anytime, so you're never locked out fr fr ๐ซถ
โญ AVAILABILITY โญ
this hint is available since SDL 3.2.0 โ so if you're on anything older, it's giving vintage, and not in the cute way ๐
and that's the whole vibe check ๐ made with love by Simple Directmedia Layer, hanging out in SDL 3.4.18. go forth and press buttons, icon queen ๐๐ ๐
๐ฆ 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