SDL_GETWINDOWRELATIVEMOUSEMODE(3)
π SDL_GetWindowRelativeMouseMode π
okay bestie so we're deep in the SDL3 FUNCTIONS manual, and this lil page right here is SDL_GetWindow...tiveMouseMode(3) (yes the header truncates it, it's just built different, the full name is in the title up there β¬οΈ). Pull up a chair, we're checking on your mouse vibes. πβ¨
πΈ NAME πΈ
SDL_GetWindowRelativeMouseMode β query whether relative mouse mode is enabled for a window.
like, is your mouse doing the relative thing or not. that's the whole assignment. π
π SYNOPSIS π
#include <SDL3/SDL_mouse.h>
bool SDL_GetWindowRelativeMouseMode(SDL_Window *window);
one include, one function call, zero drama. we love a low-maintenance queen. π
π¦ FUNCTION PARAMETERS π¦
windowβ the window to query. literally just hand it the window you're curious about, it's not that deep. πͺ
β¨ RETURN VALUE β¨
Returns true if relative mode is enabled for a window, or false otherwise.
that's it. that's the tea. a whole boolean. no error codes, no secret third option, just yes or no. π
π₯ THREAD SAFETY π₯
β οΈ This function should only be called on the main thread.
not me calling it from a worker thread and starting a whole situation π bestie do NOT do that. main thread only. periodt.
π AVAILABILITY π
This function is available since SDL 3.2.0. ποΈ
if you're on anything older, sorry babe, it's giving "not yet". upgrade arc when? π
π«Ά SEE ALSO π«Ά
SDL_SetWindowRelativeMouseMode(3)β the one that actually flips the switch. this page is just the vibe check. iykyk. π
mwah, that's the whole page, you ate it ππ§
anyway this lil diva of a manpage came from Simple Directmedia Layer, version SDL 3.4.18 β shoutout to the source, couldn't have done it without you. π bye bestie, go enable some relative mouse mode (or don't, that's the other function's job) β¨
π¦ 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