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