1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-27 11:01:23 +00:00

WASD keys and VI keys as help for keyboard users options

This commit is contained in:
Zeno Rogue
2020-05-15 15:28:59 +02:00
parent f9c6638b95
commit 9c676d082a
3 changed files with 30 additions and 12 deletions

View File

@@ -437,10 +437,9 @@ bool handleTune(int sym, int uni) {
EX purehookset hooks_fixticks;
array<int, 8>
keys_vi = {'l', 'n', 'j', 'b', 'h', 'y', 'k', 'u'},
keys_wasd = {'d', 'c', 'x', 'z', 'a', 'q', 'w', 'e'},
keys_numpad = {SDLK_KP6, SDLK_KP3, SDLK_KP2, SDLK_KP1, SDLK_KP4, SDLK_KP7, SDLK_KP8, SDLK_KP9};
EX array<int, 8> keys_vi = {'l', 'n', 'j', 'b', 'h', 'y', 'k', 'u'};
EX array<int, 8> keys_wasd = {'d', 'c', 'x', 'z', 'a', 'q', 'w', 'e'};
EX array<int, 8> keys_numpad = {SDLK_KP6, SDLK_KP3, SDLK_KP2, SDLK_KP1, SDLK_KP4, SDLK_KP7, SDLK_KP8, SDLK_KP9};
EX void handleKeyNormal(int sym, int uni) {