trigger viewer, more commands

This commit is contained in:
madeline
2026-08-08 19:20:46 -07:00
parent e17d0f21fc
commit 5b64e4fd2c
14 changed files with 782 additions and 4 deletions
+9
View File
@@ -29,6 +29,7 @@
#endif
#if TARGET_PC
#include "dusk/commands.hpp"
#include "dusk/frame_interpolation.h"
#include "dusk/logging.h"
#include "dusk/action_bindings.h"
@@ -1052,6 +1053,11 @@ void dCamera_c::debugDrawInit() {
bool dCamera_c::Run() {
#if TARGET_PC
ResetView();
if (dusk::isCameraDetached()) {
mFrameCounter++;
mTicks++;
return true;
}
if (executeDebugFlyCam()) {
mFrameCounter++;
mTicks++;
@@ -11083,6 +11089,9 @@ camera_class* dCam_getCamera() {
dCamera_c* dCam_getBody() {
camera_process_class* camera = (camera_process_class*)dCam_getCamera();
#if TARGET_PC
if (camera == nullptr) { return nullptr; }
#endif
return &camera->mCamera;
}