From 6545b36840c42ee5d05de14cb1b4cf12f8b6d520 Mon Sep 17 00:00:00 2001 From: Diogo Miranda Date: Tue, 6 Feb 2024 19:40:22 +0000 Subject: [PATCH] feat(tesseratos): Add way to disable FCC in DebugCamera after enabling it. --- tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp b/tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp index 5bec6485f..48be1816a 100644 --- a/tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp +++ b/tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp @@ -65,6 +65,10 @@ void tesseratos::debugCameraPlugin(Cubos& cubos) { window->mouseState(MouseState::Locked); controller.enabled = true; + } else if (!input.pressed("free-toggle") && controller.enabled) + { + window->mouseState(MouseState::Default); + controller.enabled = false; } } });