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

42
Assets/Materials/emo.vmat Normal file
View File

@ -0,0 +1,42 @@
// THIS FILE IS AUTO-GENERATED
Layer0
{
shader "shaders/complex.shader"
//---- Rendering ----
F_DO_NOT_CAST_SHADOWS 1
//---- Ambient Occlusion ----
g_flAmbientOcclusionDirectDiffuse "0.000"
g_flAmbientOcclusionDirectSpecular "0.000"
TextureAmbientOcclusion "materials/default/default_ao.tga"
//---- Color ----
g_flModelTintAmount "1.000"
g_vColorTint "[1.000000 1.000000 1.000000 0.000000]"
TextureColor "textures/pd7aum1vufg.jpg"
//---- Fade ----
g_flFadeExponent "1.000"
//---- Fog ----
g_bFogEnabled "1"
//---- Metalness ----
g_flMetalness "0.000"
//---- Normal ----
TextureNormal "materials/default/default_normal.tga"
//---- Roughness ----
g_flRoughnessScaleFactor "1.000"
TextureRoughness "materials/default/default_rough.tga"
//---- Texture Coordinates ----
g_nScaleTexCoordUByModelScaleAxis "0"
g_nScaleTexCoordVByModelScaleAxis "0"
g_vTexCoordOffset "[0.000 0.000]"
g_vTexCoordScale "[100.000 100.000]"
g_vTexCoordScrollSpeed "[0.000 0.000]"
}

View File

@ -0,0 +1,22 @@
{
"Longitudinal": {
"B": 18,
"C": 1.5,
"D": 1.5,
"E": 0.3
},
"Lateral": {
"B": 12,
"C": 1.3,
"D": 1.8,
"E": -1.8
},
"Aligning": {
"B": 2.8,
"C": 2.1,
"D": 0.1,
"E": -2.5
},
"__references": [],
"__version": 0
}

View File

@ -0,0 +1,22 @@
{
"Longitudinal": {
"B": 0,
"C": 1,
"D": 1,
"E": 0.3
},
"Lateral": {
"B": 1,
"C": 1,
"D": 1,
"E": 0.3
},
"Aligning": {
"B": 2.8,
"C": 2.1,
"D": 0.1,
"E": -2.5
},
"__references": [],
"__version": 0
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

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;