From f4dee994b5f9019d805328d1019b4456f6bb4b2d Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 7 Jan 2015 13:06:57 +0100 Subject: 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 --- map.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'map.c') diff --git a/map.c b/map.c index 49ef237..ff0d61a 100644 --- a/map.c +++ b/map.c @@ -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; } -- cgit v1.2.3