aboutsummaryrefslogtreecommitdiff
path: root/sim.c
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2023-12-31 15:29:50 +0200
committerKrow Savcik <krow@savcik.xyz>2023-12-31 15:29:50 +0200
commit09ac6ad4c4d2ec34ab6b8bc4d73c1374ab62dc60 (patch)
treec0faa7f2e2fcf33f04cafb1275cb2a39d4a8f9ed /sim.c
parentbd26db954e14d2196c4f8a83d1fbf09c87c66ef9 (diff)
feature: line toggling part 2
Diffstat (limited to 'sim.c')
-rw-r--r--sim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sim.c b/sim.c
index 638571d..a97907e 100644
--- a/sim.c
+++ b/sim.c
@@ -6,7 +6,7 @@
#include "draw.h"
#include "types.h"
-#define MOUSE_LOCK 1
+#define MOUSE_LOCK 0
float hfov, vfov;
float PI;
@@ -91,6 +91,7 @@ main_event()
case SDLK_m: inp ^= 1024; break;
case SDLK_i: add_obj_interactive(); break;
case SDLK_r: redo_obj(); break;
+ case SDLK_t: drawlines ^= 1; break;
case SDLK_EQUALS: s += 0.1; break;
case SDLK_MINUS: s -= 0.1; break;
}