From 49b91d83713756064fba093592f6296bc46d22df Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 11 Dec 2025 20:49:11 +0100 Subject: [PATCH] deck::show_keyboard now switches onscreen_keyboard --- control.cpp | 2 +- dialogs.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/control.cpp b/control.cpp index edeec23d..dbfa3f23 100644 --- a/control.cpp +++ b/control.cpp @@ -814,7 +814,7 @@ EX bool is_joy_index(int sym, int index) { namespace deck { constexpr int enter = 0; // A, or move constexpr int escape = 1; // B - // 'X' key is Show Keyboard + constexpr int show_keyboard = 2; // X, as in the SteamDeck default config constexpr int space = 3; // Y constexpr int alt_enter = 4; constexpr int key_t = 7; // push left joystick diff --git a/dialogs.cpp b/dialogs.cpp index adc9fe4e..2c43b35e 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -1571,6 +1571,9 @@ EX namespace dialog { apply_slider(); } + else if(is_joy_index(sym, deck::show_keyboard)) { + onscreen_keyboard = !onscreen_keyboard; + } else if(uni == PSEUDOKEY_ONSCREEN_KEYBOARD) { ne.s += keyboard_what; apply_edit();