SDL_HINT_EVDEV_DEVICES(3)
π NAME π
SDL_HINT_EVDEV_DEVICES β a lil variable that holds a whole list of evdev devices to use when udev isn't available. bestie, it's the backup plan β¨
(oh and hey, this whole page lives in the SDL3 FUNCTIONS manual, section 3, iykyk π«Ά)
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_EVDEV_DEVICES "SDL_EVDEV_DEVICES"
π¦ DESCRIPTION π¦
okay so the list of devices? it's giving this format exactly:
deviceclass:path[,deviceclass:path[,...]]
and let's break that down fr fr:
deviceclassis an integer that represents theSDL_UDEV_deviceclassβ yes, an integer, no vibes-based guessing πpathis the full path to the event device. the full path. all of it. π
and you can chain as many deviceclass:path pairs as you want, separated by commas β the [,...] is literally telling you "yeah keep going, add more" π₯
β οΈ set this hint before SDL is initialized. like, before. not during, not after, not mid-init while you're distracted by a snack. before. no cap. π
β AVAILABILITY β
this hint has been around since SDL 3.2.0 β so if you're on anything older, it's not ghosting you, it just doesn't exist yet π
made with love by the Simple Directmedia Layer crew, currently serving SDL 3.4.18 π β go forth and enumerate those event devices, you absolute icon πβ¨
π¦ 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