diff options
-rw-r--r-- | glslview.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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; } } } |