How Can I Set The Range For Xbox One Controller Triggers Using Pygame?
I am using Pygame 1.9.2 with Python 3.4 to create a control program for a robot. The controller is a new Xbox One controller connected via USB which is working fine with pygame. T
Solution 1:
(x + 1.0) / 2.0
where x
is whatever you get from the controller should give you a range of 0..1 (the + 1.0
is to get you in the range 0..2
)
Post a Comment for "How Can I Set The Range For Xbox One Controller Triggers Using Pygame?"