SDL_HINT_MOUSE_DOUBLE_CLICK_TIME(3)

✨ SDL_HINT_MOUSE_DOUBLE_CLICK_TIME πŸ’…

okay so bestie, welcome to the SDL3 functions manual, section 3 β€” the one and only SDL_HINT_MOUSE_DOUBLE_CLICK_TIME(3). yes she's a mouthful, but she's iconic and she's here to tell you about double clicks. sit down, hydrate, let's go 🫢


πŸŽ€ NAME πŸŽ€

SDL_HINT_MOUSE_DOUBLE_CLICK_TIME β€” a variable setting the double click time, in milliseconds. literally that's her whole job, no cap πŸ’–


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_MOUSE_DOUBLE_CLICK_TIME "SDL_MOUSE_DOUBLE_CLICK_TIME"

so you pull in <SDL3/SDL_hints.h> and boom, the macro is right there, spelling out the string "SDL_MOUSE_DOUBLE_CLICK_TIME" for you because typing that from memory is giving chaos energy 😭


πŸ¦‹ DESCRIPTION πŸ¦‹

This hint can be set anytime. not "only before init", not "only on a full moon" β€” literally anytime, bestie. she's flexible like that ✨


πŸ‘‘ AVAILABILITY πŸ‘‘

This hint is available since SDL 3.2.0. so if your SDL is ancient, this one's not for you, sorry babe πŸ’€


Simple Directmedia Layer made this, SDL 3.4.18 is the version on this page, and the doc itself is from the SDL_HINT_MOUS...LE_CLICK_TIME(3) manpage (yes the title got squished by the formatter, she's fine, she's just shy πŸ™ˆ). that's the whole page, periodt. go set your hint and slay πŸ’…πŸ’–

πŸ“¦ where this page comes from