Skip to content

Commit

Permalink
Workaround for Xbox 360 triggers bug on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbhogan committed Mar 20, 2015
1 parent f94cbea commit 18b7348
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Assets/InControl/Source/Unity/DeviceProfiles/Xbox360WinProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,21 @@ public Xbox360WinProfile()
TargetRange = InputControlMapping.Range.Negative,
Invert = true
},
new InputControlMapping {
Handle = "Left Trigger",
Target = InputControlType.LeftTrigger,
Source = Analog2,
SourceRange = InputControlMapping.Range.Positive,
TargetRange = InputControlMapping.Range.Positive,
},
new InputControlMapping {
Handle = "Right Trigger",
Target = InputControlType.RightTrigger,
Source = Analog2,
SourceRange = InputControlMapping.Range.Negative,
TargetRange = InputControlMapping.Range.Negative,
Invert = true
},
new InputControlMapping {
Handle = "Left Trigger",
Target = InputControlType.LeftTrigger,
Expand Down

0 comments on commit 18b7348

Please sign in to comment.