mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-28 15:41:35 -04:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7cc0c07ffb |
+1
-1
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user