driver is Connection now
This commit is contained in:
@@ -3,11 +3,9 @@
|
||||
namespace VeloX;
|
||||
public class InputResolver
|
||||
{
|
||||
public GameObject Driver { get; internal set; }
|
||||
|
||||
|
||||
private bool IsDriverActive => Driver.IsValid();
|
||||
public Connection Driver { get; internal set; }
|
||||
|
||||
private bool IsDriverActive => Driver is not null;
|
||||
|
||||
public Vector2 MouseDelta => IsDriverActive ? Input.MouseDelta : default;
|
||||
public Vector2 MouseWheel => IsDriverActive ? Input.MouseWheel : default;
|
||||
@@ -40,8 +38,6 @@ public class InputResolver
|
||||
public void StopAllHaptics()
|
||||
{
|
||||
if ( IsDriverActive )
|
||||
{
|
||||
Input.StopAllHaptics();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using Sandbox.Audio;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using VeloX.Audio;
|
||||
using static VeloX.EngineStream;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user