summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-01-22 16:37:49 -0500
committerJune McEnroe <june@causal.agency>2022-01-22 16:37:49 -0500
commit45920fb82becbd18c07dad1480929b3e37110ff8 (patch)
tree2ff924f39c6ff4cacc4dd214024f5056b921e7b5
parentBuild macOS .app bundles (diff)
downloadwep-45920fb82becbd18c07dad1480929b3e37110ff8.tar.gz
wep-45920fb82becbd18c07dad1480929b3e37110ff8.zip
Enable ctrl-click right-click emulation in freecell
-rw-r--r--freecell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/freecell.c b/freecell.c
index 16b13f8..dd1cc3d 100644
--- a/freecell.c
+++ b/freecell.c
@@ -529,6 +529,8 @@ int main(int argc, char *argv[]) {
 	if (SDL_Init(SDL_INIT_VIDEO) < 0) err("SDL_Init");
 	atexit(SDL_Quit);
 
+	SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1");
+
 	struct Paths paths;
 	if (assetPaths(&paths) < 0) err("SDL_GetPrefPath");