From 485e6c863a2f25737e75359da1f1c74f6f17e004 Mon Sep 17 00:00:00 2001 From: Bert Date: Mon, 16 May 2011 15:54:09 +0200 Subject: H/J/K/L mappings to pan to edges --- main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 2fe743a..292c3bb 100644 --- a/main.c +++ b/main.c @@ -455,6 +455,19 @@ void on_keypress(XKeyEvent *kev) { changed = img_pan(&img, &win, PAN_RIGHT); break; + case XK_H: + changed = img_pan_edge(&img, &win, PAN_LEFT); + break; + case XK_J: + changed = img_pan_edge(&img, &win, PAN_DOWN); + break; + case XK_K: + changed = img_pan_edge(&img, &win, PAN_UP); + break; + case XK_L: + changed = img_pan_edge(&img, &win, PAN_RIGHT); + break; + /* rotation */ case XK_less: img_rotate_left(&img, &win); -- cgit v1.2.3