summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Racine <bass_dr@hotmail.com>2026-09-13 20:29:52 -0400
committerGitHub <noreply@github.com>2026-09-14 00:29:52 +0000
commitea348bc9fbfb6407a6c9bd8864df4d10c6d46b05 (patch)
tree11d55ee7df88e924bfe9ed9dbf2562bfc83bff24
parent11fd0e0e7094788e8457d418b94afcfae928b19d (diff)
a11y: let F9 toggle TTS on Linux (#7191)
The hotkey was removed in #2833 because Linux had no synthesizer and fell through to SpeechLogger. #5428 added the espeak-ng backend and un-gated the settings checkbox, but left the hotkey and the README on Windows and macOS.
-rw-r--r--README.md2
-rw-r--r--soh/soh/OTRGlobals.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 013a89899..4dd7f0315 100644
--- a/README.md
+++ b/README.md
@@ -61,7 +61,7 @@ Congratulations, you are now sailing with the Ship of Harkinian! Have fun!
| F5 | Save state |
| F6 | Change state |
| F7 | Load state |
-| F9 | Toggle Text-to-Speech (Windows and Mac only) |
+| F9 | Toggle Text-to-Speech |
| F11 | Fullscreen |
| Tab | Toggle Alternate assets |
| Ctrl+R | Reset |
diff --git a/soh/soh/OTRGlobals.cpp b/soh/soh/OTRGlobals.cpp
index 77156dbfe..5dedad2fc 100644
--- a/soh/soh/OTRGlobals.cpp
+++ b/soh/soh/OTRGlobals.cpp
@@ -1769,7 +1769,7 @@ extern "C" void Graph_StartFrame() {
break;
}
-#if defined(_WIN32) || defined(__APPLE__)
+#if defined(_WIN32) || defined(__APPLE__) || defined(ESPEAK)
case KbScancode::LUS_KB_F9: {
// Toggle TTS
CVarSetInteger(CVAR_SETTING("A11yTTS"), !CVarGetInteger(CVAR_SETTING("A11yTTS"), 0));