benkuper / Chataigne

Artist-friendly Modular Machine for Art and Technology
https://benjamin.kuperberg.fr/chataigne
GNU General Public License v3.0
1.11k stars 55 forks source link

Xbox Controller Triggers have a wrong default value #206

Open producation opened 7 months ago

producation commented 7 months ago

Environment

Describe the bug Without using the triggers at the back of the Xbox One S Controller LT (Axis 5) & RT (Axis 6) they act like they are half pressed. When I press them over the deadzone the Axis shows the real value (like in the picture below the Axis 6; there it is slightly pressed). So the Triggers act completely normal if in use but if not used they fall back to half pressed.

I also tried to play around with to offset in a negative way: between an offset of -0.62 and -0.38 (with my Deadzone) it stays initialy at 0 but when I press the trigger it starts at a negative value and has a pretty big dead zone around 0 before it grows pretty fast to 1 with the trigger not even full pressed.

The Incoming Log of the Controller did not work either.

To Reproduce Steps to reproduce the behavior:

  1. Add Gamepad module
  2. Select Xbox One Controller S from the Dropdown List in the Gamepad Inspector
  3. Enable Log Incoming in the Gamepad Inspector / Module List

Expected behavior Axis 5 and 6 should start at 0 and just go up 1. It doesn't need to have negative values.

Additional context I tested the controller in other applications/games and it works as it should be. Unfortunately I don't have another controller to test.

Bildschirmfoto 2023-12-03 um 01 01 30
EmerickH commented 4 months ago

I've just tested and it works normally with a wired Xbox 360 controller (smooth values from 0 to 1). Did you connect the controller via Bluetooth or USB? Can you try the other method to see if it changes anything?