SDL_HINT_WIN...ARD_INPUTSINK(3)
π NAME π
SDL_HINT_WINDOWS_RAW_KEYBOARD_INPUTSINK β bestie, this is the variable that decides whether the RIDEV_INPUTSINK flag gets set when you're turning on Windows raw keyboard events. That's the whole vibe, iykyk.
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_WINDOWS_RAW_KEYBOARD_INPUTSINK "SDL_WINDOWS_RAW_KEYBOARD_INPUTSINK"
πΈ DESCRIPTION πΈ
Okay so picture this: you set this hint and the window is literally still gonna receive input even when it's not in the foreground. No cap. It's giving "I'm always listening, even from the back of the group chat" energy. π
But β and this is the plot twist β focused windows that receive text input will still prevent input events from triggering. So it's not a total free-for-all, fr fr.
Here's the value breakdown:
- "0" β input is not received when not in focus or foreground. This is the default, the chill baseline, the "we're minding our business" setting. π
- "1" β input will be received even when not in focus or foreground. Main character energy, always on, always aware. β¨
And good news: this hint can be set anytime. No timing drama. π«Ά
β AVAILABILITY β
This hint has been around since SDL 3.4.4. So it's a relatively fresh little icon, not an ancient relic. π
That's the whole page, bestie β served fresh from the SDL3 FUNCTIONS collection. This one's rocking with SDL 3.4.18, brought to you by the lovely people at Simple Directmedia Layer, and yeah, the manpage footer date said the same thing. Go forth and keyboard-input-sink 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