aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 2178d2e..be36753 100644
--- a/main.c
+++ b/main.c
@@ -148,12 +148,15 @@ int main(int argc, char **argv) {
int c = getch();
/* TODO: add a keybinding to calculate the path again, or maybe do it on 'a' */
/* TODO: maybe a kbng to move to start/end? */
- /* TODO: big HJKL to move fasta */
switch (c) {
case 'h': map_offset_x += 2; break;
case 'l': map_offset_x -= 2; break;
case 'j': map_offset_y -= 1; break;
case 'k': map_offset_y += 1; break;
+ case 'H': clear(); map_offset_x += 20; break;
+ case 'L': clear(); map_offset_x -= 20; break;
+ case 'J': clear(); map_offset_y -= 10; break;
+ case 'K': clear(); map_offset_y += 10; break;
case 'z': clear(); map_offset_x = 2; map_offset_y = 1; break; /* Move to top left corner */
case 'x': clear(); map_offset_x = - width * 2 + COLS - 2; map_offset_y = - height + LINES - 2; break; /* Move to bottom right corner */
case 'a': anim = !anim; break;