From 2dd01b1f34254e03dcfd4dc15844b065525dbfe9 Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Tue, 8 Nov 2022 10:38:58 -0800 Subject: [PATCH] Lock mouse frozen behind debug flag --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index a10b43e..4645059 100644 --- a/main.c +++ b/main.c @@ -905,9 +905,11 @@ void event(const sapp_event* e) { switch (e->type) { case SAPP_EVENTTYPE_KEY_DOWN: +#ifdef DEBUG if (e->key_code == SAPP_KEYCODE_T) { mouse_frozen = !mouse_frozen; } +#endif if (e->key_code == SAPP_KEYCODE_R) { cur_editing_rotation += 1; cur_editing_rotation %= RotationLast;