SDL_HINT_WINDOWS_RAW_KEYBOARD(3)

πŸ’– SDL_HINT_WINDOWS_RAW_KEYBOARD πŸ’–

okay bestie, welcome to the manual page for SDL_HINT_WINDOWS_RAW_KEYBOARD β€” that's the SDL3 functions girlies, and yes this is literally the whole vibe. sit down, sip ur drink, we're gonna talk about keyboards on Windows πŸ¦‹


✨ NAME ✨

SDL_HINT_WINDOWS_RAW_KEYBOARD β€” a variable that controls whether raw keyboard events are used on Windows. that's it. that's the whole name. no cap.


🌸 SYNOPSIS 🌸

so first u gotta pull in the header, like:

#include <SDL3/SDL_hints.h>

and then the define itself, character for character, do not touch it:

#define SDL_HINT_WINDOWS_RAW_KEYBOARD "SDL_WINDOWS_RAW_KEYBOARD"

she's iconic, she's simple, she's giving "just a string" energy πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the tea. this variable can be set to the following values:

  • "0" β€” the Windows message loop is used for keyboard events. this is the default, so if u don't say anything, this is what u get. lowkey the classic route 🫢
  • "1" β€” low latency raw keyboard events are used. highkey for when u want that instant response, the keyboard equivalent of replying to the group chat in 0.2 seconds πŸ”₯
bestie note: this hint can be set anytime. no timing drama, no "omg u missed the window", just set it whenever, periodt.

🌈 AVAILABILITY 🌈

this hint is available since SDL 3.2.0. if ur on anything older, sorry babe, she's not there yet 😭


and that's the whole page! mwah πŸ’‹

this was brought to u by Simple Directmedia Layer, version SDL 3.4.18, and it's the SDL_HINT_WINDOWS_RAW_KEYBOARD(3) page β€” slay, bye bestie πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from