From f657b5db61150908e09285875022d2a469307105 Mon Sep 17 00:00:00 2001 From: Esko Kokkonen Date: Sat, 3 Apr 2010 18:49:06 +0300 Subject: [PATCH] poll_events: Add predefined time scales --- main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main.c b/main.c index dfcc148..66272cb 100644 --- a/main.c +++ b/main.c @@ -100,6 +100,18 @@ static int poll_events(struct sim_status *status, double time) case SDLK_a: time_scale_rate = 1 / 1.5; break; + case SDLK_1: + status->time_scale = 1; + break; + case SDLK_2: + status->time_scale = 10; + break; + case SDLK_3: + status->time_scale = 20; + break; + case SDLK_4: + status->time_scale = 30; + break; case SDLK_t: status->tracers_enabled = !status->tracers_enabled; -- 2.45.0