Skip to content

Fix joystick - #1341

Open
sezanzeb wants to merge 3 commits into
mainfrom
gamepad_fix
Open

Fix joystick#1341
sezanzeb wants to merge 3 commits into
mainfrom
gamepad_fix

Conversation

@sezanzeb

@sezanzeb sezanzeb commented Aug 3, 2026

Copy link
Copy Markdown
Owner

On my new kubuntu 26.04 installation the xbox one gamepad seems to work out of the box over bluetooth. However, I couldn't record stuff with the joystick.

If I remember correctly, without xpadneo I couldn't even connect the gamepad. I'm assuming a newer kernel fixed this, and that I get different capabilities for the joystick now, that trigger a bug possibly introduced in #1274

@sezanzeb

sezanzeb commented Aug 3, 2026

Copy link
Copy Markdown
Owner Author

TODO: Write test that reproduces the issue. if abs(event.value - mid_point) < threshold: broke, because threshold was an absolute value (Meaning it included the mid-point, and was therefore a very large value), whereas event.value - mid_point is a small delta value. It then always set pressed to False. It therefore, after #1274, only worked for gamepads that have a -min to +max range, but not for ones with a 0 to +max range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant