drag turn on middle mouse
This commit is contained in:
parent
9fa2884bfe
commit
3f8fae0687
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ static class Mono
|
||||||
{
|
{
|
||||||
if (Input.Key(Key.MouseCenter).IsActive())
|
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);
|
float ssx = Maths.smooth_start(sx);
|
||||||
box_pose.orientation *= Quat.FromAngles(0, sx * 180.0f * Time.Stepf, 0);
|
box_pose.orientation *= Quat.FromAngles(0, sx * 180.0f * Time.Stepf, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue