drag turn on middle mouse

This commit is contained in:
ethan merchant 2024-11-04 05:18:10 -05:00
parent 9fa2884bfe
commit 3f8fae0687

View file

@ -52,7 +52,7 @@ static class Mono
{
if (Input.Key(Key.MouseCenter).IsActive())
{
float sx = Maths.s_scalar(Input.Mouse.pos.x / 640);
float sx = Input.Mouse.posChange.x;
float ssx = Maths.smooth_start(sx);
box_pose.orientation *= Quat.FromAngles(0, sx * 180.0f * Time.Stepf, 0);
}