Skip to content

Commit

Permalink
RT LT bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
teamclouday committed Apr 18, 2020
1 parent 5501a9a commit ffdfdc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Windows/SteeringWheel/MyWheel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Windows/SteeringWheel/SteeringWheel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<ProductName>Steering Wheel Service</ProductName>
<PublisherName>Sida Zhu</PublisherName>
<SuiteName>Teamclouday</SuiteName>
<ApplicationRevision>2</ApplicationRevision>
<ApplicationRevision>3</ApplicationRevision>
<ApplicationVersion>1.1.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
Expand Down

0 comments on commit ffdfdc3

Please sign in to comment.