SDL_HINT_WINDOWS_GAMEINPUT(3)
π SDL_HINT_WINDOWS_GAMEINPUT π
okay bestie, so this one lives in the SDL3 FUNCTIONS corner of the SDL_HINT_WINDOWS_GAMEINPUT(3) manual, and it's literally just a lil variable that decides whether GameInput gets to handle your raw keyboard and mouse on Windows. no cap. π
β¨ NAME β¨
SDL_HINT_WINDOWS_GAMEINPUT β a variable controlling whether GameInput is used for raw keyboard and mouse on Windows.
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_hints.h>
#define SDL_HINT_WINDOWS_GAMEINPUT "SDL_WINDOWS_GAMEINPUT"
π¦ DESCRIPTION π¦
so the variable can be set to these values, and honestly there's only two so it's giving easy mode:
"0"β GameInput is not used for raw keyboard and mouse events. this is the default, bestie, so if you do nothing, this is the vibe you get. π"1"β GameInput is used for raw keyboard and mouse events, if available. like, only if it actually exists on the system, okay? don't come for me if it's not there. π
β οΈ ok listen, this hint should be set before SDL is initialized. before. not after. the way that timing matters here is real β set it early or it won't do the thing. π
π AVAILABILITY π
this hint is available since SDL 3.2.0. so if you're on anything older, sorry babe, no GameInput hint for you. π«Ά
and that's the whole page, periodt. π this lil gem comes to you straight from Simple Directmedia Layer β SDL 3.4.18 era β and it's the SDL_HINT_WINDOWS_GAMEINPUT(3) page itself, so go forth and set your hints before init, 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