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
- 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