diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-06 09:53:13 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-06 09:53:13 +0000 |
commit | 84f5b0437e74a418902503e96f70d1c5a80a4c01 (patch) | |
tree | ad47332edc4439566bb7935a786d705b64d92c3d | |
parent | c72aba646b96fee205d4232d55c888d5df4bd829 (diff) | |
download | imv-84f5b0437e74a418902503e96f70d1c5a80a4c01.tar.gz |
Add more view navigation shortcuts
-rw-r--r-- | main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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: |