1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 07:16:01 +00:00

improved key handling: numpad works as directions with numlock off and numbers with numlock on; shift+5 works now; better key assignments in crystal rug

This commit is contained in:
Zeno Rogue
2018-12-06 12:31:51 +01:00
parent 9b21b9c5a0
commit b256ac70af
9 changed files with 115 additions and 93 deletions

View File

@@ -95,30 +95,30 @@ void showDemo() {
keyhandler = [] (int sym, int uni) {
dialog::handleNavigation(sym, uni);
if(sym == SDLK_F1 || sym == 'h') gotoHelp(help);
else if(sym == 'a') {
if(sym == SDLK_F1 || uni == 'h') gotoHelp(help);
else if(uni == 'a') {
toggleanim(!demoanim);
popScreen();
}
else if(sym == 'f') {
else if(uni == 'f') {
firstland = laIce;
restart_game(tactic::on ? rg::tactic : rg::nothing);
}
#if CAP_TOUR
else if(sym == 'T') {
else if(uni == 'T') {
firstland = laIce;
if(!tour::on) tour::start();
}
#endif
else if(sym == 't') {
else if(uni == 't') {
firstland = laTemple;
restart_game(tactic::on ? rg::tactic : rg::nothing);
}
else if(sym == 'l') {
else if(uni == 'l') {
firstland = laStorms;
restart_game(tactic::on ? rg::tactic : rg::nothing);
}
else if(sym == 'b') {
else if(uni == 'b') {
firstland = laBurial;
restart_game(tactic::on ? rg::tactic : rg::nothing);
items[itOrbSword] = 60;