driver is Connection now

This commit is contained in:
Valera
2025-06-12 22:56:59 +07:00
parent 0ff82f3eac
commit ba9afba4d1
6 changed files with 88 additions and 7 deletions

View File

@@ -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();
}
}
}

View File

@@ -2,7 +2,6 @@
using Sandbox.Audio;
using System;
using System.Collections.Generic;
using System.IO;
using VeloX.Audio;
using static VeloX.EngineStream;