diff options
author | Krow Savcik <krow@savcik.xyz> | 2023-12-31 15:29:50 +0200 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2023-12-31 15:29:50 +0200 |
commit | 09ac6ad4c4d2ec34ab6b8bc4d73c1374ab62dc60 (patch) | |
tree | c0faa7f2e2fcf33f04cafb1275cb2a39d4a8f9ed | |
parent | bd26db954e14d2196c4f8a83d1fbf09c87c66ef9 (diff) |
feature: line toggling part 2
-rw-r--r-- | sim.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |