Skip to content

Fix stuck down guitar input#1

Open
Maudfer wants to merge 1 commit into
Evilvir-us:masterfrom
Maudfer:fix/guitar-stuck-down-input
Open

Fix stuck down guitar input#1
Maudfer wants to merge 1 commit into
Evilvir-us:masterfrom
Maudfer:fix/guitar-stuck-down-input

Conversation

@Maudfer

@Maudfer Maudfer commented Jun 14, 2026

Copy link
Copy Markdown

This PR fixes an issue I was having on my own wii guitar, so I'm assuming it affects certain hardware only.

The Wiimote itself was working fine, and WiimoteThing created the virtual Xbox controller normally, but piping the input to the virtual controller was not working as expected: With just the Wiimote connected, input worked as expected, but as soon as I connected a Guitar accessory, the app would constantly pipe a Down / HAT Down input to the virtual Xbox controller even when I wasn't touching the stick or strum bar.

I ruled out any hardware defects, the guitar works fine on a real Wii, and the same Wiimote + guitar + Bluetooth dongle also works correctly in Dolphin. The issue only showed up here, in the translation from guitar input to the virtual Xbox controller.

The root cause was the guitar stick being normalized against a hardcoded neutral center that I'm guessing doesn't hold across all guitar hardware revisions. On my guitar (an off-brand from 15 years ago that as far as I know is a clone of the original Guitar Hero Les Paul for the Wii), that meant the stick looked slightly off-center all the time, which turned into a permanent held direction.

This change makes the guitar learn its joystick neutral from the first real live sample instead of assuming the default center is always correct. Saved calibration is still respected if it's already present.

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