1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-17 02:29:44 +00:00

further improved Deck controls

This commit is contained in:
Zeno Rogue
2025-11-11 22:02:43 +01:00
parent e4269a8fda
commit e4d52d23d1
6 changed files with 33 additions and 12 deletions

View File

@@ -716,7 +716,7 @@ EX namespace dialog {
EX int display_keys = 1;
EX bool actual_display_keys() {
if(display_keys > 1) return true;
if(display_keys == 2) return true;
if(display_keys == 1) return !mousing;
return false;
}
@@ -981,7 +981,7 @@ EX namespace dialog {
highlight_text = "//missing";
return;
}
if(uni == '\n' || uni == '\r' || DIRECTIONKEY == SDLK_KP5) {
if(uni == '\n' || uni == '\r' || DIRECTIONKEY == SDLK_KP5 || uni == '`') {
for(int i=0; i<isize(items); i++)
if(isitem(items[i]))
if(is_highlight(items[i])) {