Lock mouse frozen behind debug flag

main
Cameron Murphy Reikes 2 years ago
parent 5b5036ff5b
commit 2dd01b1f34

@ -905,9 +905,11 @@ void event(const sapp_event* e)
{ {
switch (e->type) { switch (e->type) {
case SAPP_EVENTTYPE_KEY_DOWN: case SAPP_EVENTTYPE_KEY_DOWN:
#ifdef DEBUG
if (e->key_code == SAPP_KEYCODE_T) { if (e->key_code == SAPP_KEYCODE_T) {
mouse_frozen = !mouse_frozen; mouse_frozen = !mouse_frozen;
} }
#endif
if (e->key_code == SAPP_KEYCODE_R) { if (e->key_code == SAPP_KEYCODE_R) {
cur_editing_rotation += 1; cur_editing_rotation += 1;
cur_editing_rotation %= RotationLast; cur_editing_rotation %= RotationLast;

Loading…
Cancel
Save