aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.c b/main.c
index 17be7f7..98db8ad 100644
--- a/main.c
+++ b/main.c
@@ -87,12 +87,26 @@ int main(int argc, char** argv)
if(next_path < 0)
next_path = num_paths - 1;
break;
+ case SDLK_i:
case SDLK_UP:
zoom_view(1);
break;
+ case SDLK_o:
case SDLK_DOWN:
zoom_view(-1);
break;
+ case SDLK_j:
+ move_view(0, -50);
+ break;
+ case SDLK_k:
+ move_view(0, 50);
+ break;
+ case SDLK_h:
+ move_view(50, 0);
+ break;
+ case SDLK_l:
+ move_view(-50, 0);
+ break;
}
break;
case SDL_MOUSEWHEEL: