summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glslview.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/glslview.c b/glslview.c
index 26c9f22..730032b 100644
--- a/glslview.c
+++ b/glslview.c
@@ -261,7 +261,20 @@ static void handle_input(const char *input) {
break;
case '=':
- speed = 1.0;
+ if (speed < 0)
+ speed = -1.0;
+ else
+ speed = 1.0;
+ break;
+
+ case '<':
+ if (speed > 0)
+ speed = -speed;
+ break;
+
+ case '>':
+ if (speed < 0)
+ speed = -speed;
}
}
}