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:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user