diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 13:06:57 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-07 13:06:57 +0100 |
commit | f4dee994b5f9019d805328d1019b4456f6bb4b2d (patch) | |
tree | 08bf5258c69a539380cefb2fa697b770efaa43f3 /map.c | |
parent | e984a172127c3d13ac85c29511c68784ca43984c (diff) |
game: added vim key bindings to UP/DOWN/LEFT/RIGHT
h/j/k/l are mapped to behave like arrow keys so that the navigation is
easier in the menus.
F and A are respectiverly used to validate and cancel as well.
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'map.c')
-rw-r--r-- | map.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -23,9 +23,11 @@ void Fmap (SURFACES*surfaces, POSITIONS* positions,PERSONNAGES persos[],ENNEMIS switch (event.key.keysym.sym) { case SDLK_RETURN: + case SDLK_f: continuer=Fjouer(surfaces,positions,persos,ennemis); break; case SDLK_ESCAPE: + case SDLK_a: continuer=0; break; } |