diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-26 09:31:00 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-11-26 09:31:00 +0200 |
commit | b60d380ad6e83cd1b155b8057528f25bb1494a38 (patch) | |
tree | 974a072dcccb8a712ec8f0b36cb799a77811b22b | |
parent | ffba326f3189caa32e7dac5dc9e5eba69c83cbcb (diff) |
macOS: Ctrl-Click as a right click
-rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -54,6 +54,7 @@ int main(int argc, char **argv) { | |||
54 | #endif | 54 | #endif |
55 | init_Foundation(); | 55 | init_Foundation(); |
56 | SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); | 56 | SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, "1"); |
57 | SDL_SetHint(SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK, "1"); | ||
57 | if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { | 58 | if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER)) { |
58 | fprintf(stderr, "SDL init failed: %s\n", SDL_GetError()); | 59 | fprintf(stderr, "SDL init failed: %s\n", SDL_GetError()); |
59 | return -1; | 60 | return -1; |