aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-06 09:53:13 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-06 09:53:13 +0000
commit84f5b0437e74a418902503e96f70d1c5a80a4c01 (patch)
treead47332edc4439566bb7935a786d705b64d92c3d /main.c
parentc72aba646b96fee205d4232d55c888d5df4bd829 (diff)
downloadimv-84f5b0437e74a418902503e96f70d1c5a80a4c01.tar.gz
Add more view navigation shortcuts
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: