1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-19 20:38:09 +00:00

deck::show_keyboard now switches onscreen_keyboard

This commit is contained in:
Zeno Rogue
2025-12-11 20:49:11 +01:00
parent c2dc92d02a
commit 49b91d8371
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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();