Skip to content

Commit

Permalink
feat(tesseratos): Add way to disable FCC in DebugCamera after enablin…
Browse files Browse the repository at this point in the history
…g it.
  • Loading branch information
diogomsmiranda committed Feb 6, 2024
1 parent 9127b1a commit 6545b36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/tesseratos/src/tesseratos/debug_camera/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
});
Expand Down

0 comments on commit 6545b36

Please sign in to comment.