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