From ffdfdc3667bf7cee1fe9d62b9410f1024483fb71 Mon Sep 17 00:00:00 2001 From: teamclouday Date: Sat, 18 Apr 2020 15:28:46 -0400 Subject: [PATCH] RT LT bug fix --- Windows/SteeringWheel/MyWheel.cs | 8 ++++++-- Windows/SteeringWheel/SteeringWheel.csproj | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Windows/SteeringWheel/MyWheel.cs b/Windows/SteeringWheel/MyWheel.cs index 1280463..4a2e70e 100644 --- a/Windows/SteeringWheel/MyWheel.cs +++ b/Windows/SteeringWheel/MyWheel.cs @@ -437,12 +437,16 @@ public void TriggerControl(ControlAxis axis) joystick.SetAxis((int)(axisMax / 2), deviceID, HID_USAGES.HID_USAGE_RY); break; case ControlAxis.Z: - joystick.SetAxis((int)axisMax, deviceID, HID_USAGES.HID_USAGE_Z); + joystick.SetAxis(0, deviceID, HID_USAGES.HID_USAGE_Z); + System.Threading.Thread.Sleep(80); + joystick.SetAxis((int)(axisMax / 2), deviceID, HID_USAGES.HID_USAGE_Z); // Need to be half here System.Threading.Thread.Sleep(80); joystick.SetAxis(0, deviceID, HID_USAGES.HID_USAGE_Z); break; case ControlAxis.ZRot: - joystick.SetAxis((int)axisMax, deviceID, HID_USAGES.HID_USAGE_RZ); + joystick.SetAxis(0, deviceID, HID_USAGES.HID_USAGE_RZ); + System.Threading.Thread.Sleep(80); + joystick.SetAxis((int)(axisMax / 2), deviceID, HID_USAGES.HID_USAGE_RZ); // Need to be half here System.Threading.Thread.Sleep(80); joystick.SetAxis(0, deviceID, HID_USAGES.HID_USAGE_RZ); break; diff --git a/Windows/SteeringWheel/SteeringWheel.csproj b/Windows/SteeringWheel/SteeringWheel.csproj index b04f726..afc868c 100644 --- a/Windows/SteeringWheel/SteeringWheel.csproj +++ b/Windows/SteeringWheel/SteeringWheel.csproj @@ -29,7 +29,7 @@ Steering Wheel Service Sida Zhu Teamclouday - 2 + 3 1.1.0.%2a false true