feat: add imguizmo + trigger buxfix
This commit is contained in:
@@ -33,6 +33,11 @@ void Camera::Update(float deltaTime) {
|
||||
if (input.IsKeyDown(SDL_SCANCODE_LEFT)) m_yaw -= keyLookSpeed * deltaTime;
|
||||
if (input.IsKeyDown(SDL_SCANCODE_RIGHT)) m_yaw += keyLookSpeed * deltaTime;
|
||||
|
||||
if (input.IsMouseDown(SDL_BUTTON_RIGHT)) {
|
||||
m_yaw += static_cast<float>(input.MouseDeltaX()) * m_mouseSensitivity;
|
||||
m_pitch -= static_cast<float>(input.MouseDeltaY()) * m_mouseSensitivity;
|
||||
}
|
||||
|
||||
if (pad0 >= 0) {
|
||||
const float rx = input.GetPadAxis(pad0, SDL_CONTROLLER_AXIS_RIGHTX);
|
||||
const float ry = input.GetPadAxis(pad0, SDL_CONTROLLER_AXIS_RIGHTY);
|
||||
|
||||
Reference in New Issue
Block a user