Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Runtime Issue]: XBox Controller registers triggers as [-1, 1] axes instead of [0, 1] #496

Open
3 of 20 tasks
tophyr opened this issue Jul 18, 2024 · 2 comments · May be fixed by #600
Open
3 of 20 tasks

[Runtime Issue]: XBox Controller registers triggers as [-1, 1] axes instead of [0, 1] #496

tophyr opened this issue Jul 18, 2024 · 2 comments · May be fixed by #600
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tophyr
Copy link
Contributor

tophyr commented Jul 18, 2024

Build Version

87f6ef0

Operating System Environment

  • Microsoft Windows (32-bit)
  • Microsoft Windows (64-bit)
  • Mac OS X
  • Linux (specify distribution and version below)

CPU Environment

  • x86 (32-bit Intel/AMD)
  • x86_64 (64-bit Intel/AMD)
  • ARM (32-bit)
  • ARM64 (64-bit; sometimes called AArch64)
  • Other (RISC V, PPC...)

Game Modes Affected

  • Single player
  • Anarchy
  • Hyper-Anarchy
  • Robo-Anarchy
  • Team Anarchy
  • Capture the Flag
  • Bounty
  • Entropy
  • Hoard
  • Monsterball
  • Cooperative

Game Environment

No response

Description

XBox Controller's "trigger buttons" are continuous-value controls, which are detected (somewhat sensibly) as joystick axes in the game. However, the game assumes that the axis range is both positive and negative, when in reality the trigger should be mapped as a positive-only axis. The result of this is that an untouched trigger is always detected as being the maximally-negative value.

Regression Status

No response

Steps to Reproduce

No response

@tophyr tophyr added the bug Something isn't working label Jul 18, 2024
@byteManiak
Copy link

Can confirm it also happens on Linux x86_64

@Lgt2x Lgt2x self-assigned this Sep 22, 2024
@Lgt2x Lgt2x linked a pull request Sep 22, 2024 that will close this issue
13 tasks
@Lgt2x
Copy link
Member

Lgt2x commented Sep 22, 2024

I have an early draft for analog trigger support over at #600 . I don't have an XBox controller at hand but could reproduce with another gamepad (in my case Gamecube controller with adapter). It may need some tuning but the basics should work, if one of you wants to give it a try.

@Lgt2x Lgt2x added this to the 1.6 milestone Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants