Compare commits

...

1 Commits

Author SHA1 Message Date
MelonSpeedruns 7cc0c07ffb Only move freecam when holding right click 2026-08-28 13:37:36 -04:00
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -7595,7 +7595,7 @@ bool dCamera_c::executeDebugFlyCam() {
if (ImGui::IsKeyDown(ImGuiKey_Q)) rollInput -= 1.0f;
if (ImGui::IsKeyDown(ImGuiKey_E)) rollInput += 1.0f;
}
bool mouseValid = !io.WantCaptureMouse && io.MousePos.x >= 0.0f && io.MousePos.y >= 0.0f;
bool mouseValid = !io.WantCaptureMouse && io.MousePos.x >= 0.0f && io.MousePos.y >= 0.0f && ImGui::IsMouseDown(ImGuiMouseButton_Right);
if (mouseValid && sFlyCamLastMousePos.x >= 0.0f) {
cStickX -= (io.MousePos.x - sFlyCamLastMousePos.x) * 2.0f;
cStickY -= (io.MousePos.y - sFlyCamLastMousePos.y) * 2.0f;
+9 -4
View File
@@ -64,10 +64,15 @@ namespace dusk {
if (eventRunning) {
ImGui::SetTooltip("Cannot enable while paused or during an active event.");
} else {
ImGui::SetTooltip("Detach camera and fly freely.\n"
"WASD/Arrows/Left stick: move, Mouse/C-stick: look\n"
"Ctrl/L: down, Space/R: up, Shift/Z: fast\n"
"Q Key/Y: roll left, R Key/X: roll right");
ImGui::SetTooltip("Detach camera and fly freely.\n\n"
"Controls:\n"
"WASD/Arrows/Left stick - Move\n"
"Right Click+Mouse/C-stick - Look\n"
"Ctrl/L - Down\n"
"Space/R - Up\n"
"Shift/Z - Faster\n"
"Q Key/Y - Roll Left\n"
"R Key/X - Roll Right");
}
}
if (eventRunning) {