1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-06 04:17:58 +00:00

Merge pull request #381 from jlmjlm/tabsd

Select the keyboard push-subdirection with Tab.
This commit is contained in:
Zeno Rogue
2024-10-11 12:50:54 +02:00
committed by GitHub
4 changed files with 14 additions and 7 deletions

View File

@@ -149,6 +149,7 @@ EX void movepckeydir(int d) {
if(protect_memory()) return;
movedir md = vectodir(move_destination_vec(d));
md.subdir = keybd_subdir ? 1 : -1;
if(!canmove) movepcto(md), remission(); else movepcto(md);
}
@@ -618,6 +619,10 @@ EX void handleKeyNormal(int sym, int uni) {
else restart_game();
}
if(sym == SDLK_TAB) {
keybd_subdir = !keybd_subdir;
}
if(sym == SDLK_ESCAPE) {
if(bow::fire_mode)
bow::switch_fire_mode();