From a7625d370d9667fcdab89feeb2198ba6ab58ff0c Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Sun, 18 Apr 2010 13:26:31 +0300 Subject: [PATCH] poll_events: Add support for stopping the simulation This makes it possible to for example inspect the tree structure in a stopped simulation. Signed-off-by: Timo Kokkonen --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 8be3330..f2a012c 100644 --- a/main.c +++ b/main.c @@ -123,6 +123,9 @@ static int poll_events(struct sim_status *status, double time) case SDLK_4: status->time_scale = 30; break; + case SDLK_0: + status->time_scale = 0; + break; case SDLK_t: status->tracers_enabled = !status->tracers_enabled; -- 2.44.0