SDL_HINT_MAC...E_RIGHT_CLICK(3)

πŸ’– SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK πŸ’–

okay bestie, so this one lives in the SDL3 FUNCTIONS manual, and it's literally just a lil variable that decides whether Ctrl+Click on macOS should pop off as a right-click event. that's the whole vibe. no cap. πŸ“


✨ NAME ✨

SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK β€” a variable that determines whether Ctrl+Click should generate a right-click event on macOS. πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK "SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK"

like yes, the macro name and the string are the same thing but spelled differently, iykyk πŸ™ˆ


πŸ¦‹ DESCRIPTION πŸ¦‹

so the variable can be set to these values, and you literally only get two choices, it's giving minimalism:

  • "0" β€” Ctrl+Click does not generate a right mouse button click event. this is the default, bestie, so if you don't touch anything, this is what you get. πŸ™ˆ
  • "1" β€” Ctrl+Click generated a right mouse button click event. πŸ‘‘
ngl the description for "1" is worded in the past tense in the original and i am simply not the one who is going to change it. it's iconic. it stays. 😭

the slay part? this hint can be set anytime ✨ no timing drama, no "only before init" nonsense, set it whenever your heart desires. 🫢


⭐ AVAILABILITY ⭐

this hint has been available since SDL 3.2.0. so if you're on anything older, it's not a vibe, it's just not there. πŸ’€


Simple Directmedia Layer wrote this whole thing, we're on SDL 3.4.18, and that's the tea. mwah, go forth and Ctrl+Click responsibly πŸŽ€πŸ’œπŸ§š

πŸ“¦ where this page comes from