SDL_HINT_MOU..._CLICKTHROUGH(3)

okay so bestie, welcome to the SDL3 FUNCTIONS manual. This page is SDL_HINT_MOU..._CLICKTHROUGH(3), and it's giving click-to-focus realness ✨

πŸŽ€ NAME πŸŽ€

SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH β€” Allow mouse click events when clicking to focus an SDL window.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_hints.h>

#define SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH "SDL_MOUSE_FOCUS_CLICKTHROUGH"

✨ DESCRIPTION ✨

okay so this variable can be set to the following values:

  • "0" β€” Ignore mouse clicks that activate a window. (default) πŸ™ˆ
  • "1" β€” Generate events for mouse clicks that activate a window. πŸ”₯

This hint can be set anytime. πŸ’…


🌈 AVAILABILITY 🌈

This hint is available since SDL 3.2.0. πŸ‘‘


source: Simple Directmedia Layer · version: SDL 3.4.18 · manual page: SDL_HINT_MOU..._CLICKTHROUGH(3) · date: not listed on this footer, so we're just vibing 🫢

πŸ“¦ where this page comes from