mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-20 21:08:06 +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 {
|
namespace deck {
|
||||||
constexpr int enter = 0; // A, or move
|
constexpr int enter = 0; // A, or move
|
||||||
constexpr int escape = 1; // B
|
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 space = 3; // Y
|
||||||
constexpr int alt_enter = 4;
|
constexpr int alt_enter = 4;
|
||||||
constexpr int key_t = 7; // push left joystick
|
constexpr int key_t = 7; // push left joystick
|
||||||
|
|||||||
@@ -1571,6 +1571,9 @@ EX namespace dialog {
|
|||||||
|
|
||||||
apply_slider();
|
apply_slider();
|
||||||
}
|
}
|
||||||
|
else if(is_joy_index(sym, deck::show_keyboard)) {
|
||||||
|
onscreen_keyboard = !onscreen_keyboard;
|
||||||
|
}
|
||||||
else if(uni == PSEUDOKEY_ONSCREEN_KEYBOARD) {
|
else if(uni == PSEUDOKEY_ONSCREEN_KEYBOARD) {
|
||||||
ne.s += keyboard_what;
|
ne.s += keyboard_what;
|
||||||
apply_edit();
|
apply_edit();
|
||||||
|
|||||||
Reference in New Issue
Block a user