summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2026-02-28 14:30:33 -0500
committer arbee <rb6502@users.noreply.github.com>2026-02-28 14:30:33 -0500
commitbdd5fb804d5002c80e8a9a325772a60f82709c80 (patch)
tree22a04521714defdf480d5a81524815be5484f8e2 /src/osd
parent06006dcddebe5c599eda7e714a84c444bae4ad1f (diff)
sdl3: Set hint to disable the accents popup on macOS when holding down keys. [R. Belmont]
Diffstat (limited to 'src/osd')
-rw-r--r--src/osd/sdl3/sdlmain.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/osd/sdl3/sdlmain.cpp b/src/osd/sdl3/sdlmain.cpp
index 99f319a946a..445a156fdde 100644
--- a/src/osd/sdl3/sdlmain.cpp
+++ b/src/osd/sdl3/sdlmain.cpp
@@ -80,10 +80,15 @@ int main(int argc, char** argv)
diagnostics_module::get_instance()->init_crash_diagnostics();
#if defined(SDLMAME_ANDROID)
- /* Enable standard application logging */
+ // Enable standard application logging
SDL_SetLogPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_VERBOSE);
#endif
+#if defined(SDLMAME_MACOSX)
+ // disable the popup accents menu on macOS
+ SDL_SetHint(SDL_HINT_MAC_PRESS_AND_HOLD, 0);
+#endif
+
// FIXME: this should be done differently
#ifdef SDLMAME_UNIX