KeyPuncher / WiinUPro

Microsoft Public License
412 stars 52 forks source link

Messed up Z-axis shake #96

Open Neelgodly opened 2 years ago

Neelgodly commented 2 years ago

The x and y axes shake controls work flawlessly but for some reason it thinks I'm always shaking on Z axis. When mapped to a button on xbox gamepad, that particular button always remains pressed. Also, I guarantee this isn't a wii remote problem since it works flawlessly on new super mario bros when used without WiinUSoft.

Your software is amazing btw, I love it :)

Neelgodly commented 2 years ago

Another update on this btw @KeyPuncher

The button actually gets unpressed when i shake the remote along z axis lmao. I think there is some weird invert command somewhere lol.

Neelgodly commented 2 years ago

Did some more testing. basically when the wiimote is facing up (buttons up), wiinusoft registers it as a shake, but when I rotate it left, it somehow realises the wiimote is stable and unpresses the button assigned to z-axis shake.

KeyPuncher commented 2 years ago

Oh, I think I understand why it's behaving that way. The Z-axis is mainly for telling if the Wiimote is face up or down. It reads 128 when face up, -128 when face down, and 0 on its side. The Z shake is likely expecting 0 to be the resting point. I should probably change it so it looks for a negative inflection to trigger the action.

Neelgodly commented 2 years ago

Makes perfect sense. Waiting for the fix :) Do ping me if you want some testing