Skip to content

input: Fix inconsistent axis detection for button-type triggers#2213

Open
inada-s wants to merge 1 commit intoflyinghead:masterfrom
inada-s:fix/analog-input-setting-2
Open

input: Fix inconsistent axis detection for button-type triggers#2213
inada-s wants to merge 1 commit intoflyinghead:masterfrom
inada-s:fix/analog-input-setting-2

Conversation

@inada-s
Copy link
Contributor

@inada-s inada-s commented Jan 19, 2026

Problem

When mapping button-type triggers (digital buttons reported as analog axes, like HORI Fighting Commander OCTA), the reverse flag was inconsistently detected. The same mapping operation could result in either reverse=0 or reverse=1 depending on timing. This issue likely affects many arcade sticks.

Video.Project.mp4

Fix

Track last known axis values in lastRawAxisValues and use them to initialize detectingAxes at detection start, ensuring the correct idle state is always set regardless of event timing.

@inada-s inada-s force-pushed the fix/analog-input-setting-2 branch from 7fc3792 to 983423b Compare January 20, 2026 15:14
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