feat: add scene view fly controls

This commit is contained in:
2026-03-28 18:28:11 +08:00
parent af2f30dad6
commit 569f8ef725
5 changed files with 72 additions and 2 deletions

View File

@@ -91,6 +91,11 @@ public:
SceneViewportCameraInputState controllerInput = {};
controllerInput.viewportHeight = input.viewportSize.y;
controllerInput.zoomDelta = input.hovered ? input.mouseWheel : 0.0f;
controllerInput.deltaTime = input.deltaTime;
controllerInput.moveForward = input.moveForward;
controllerInput.moveRight = input.moveRight;
controllerInput.moveUp = input.moveUp;
controllerInput.fastMove = input.fastMove;
if (input.looking) {
controllerInput.lookDeltaX = input.mouseDelta.x;