jloehr / HID-Wiimote

Windows Device Driver for the Nintendo Wii Remote
GNU General Public License v3.0
215 stars 45 forks source link

Fix Whammy Bar and Touchbar #40

Closed jloehr closed 6 years ago

jloehr commented 6 years ago

Change mapping of those two from Rotation (RX & RY) to Z and RZ.

Also on https://github.com/jloehr/HID-Wiimote/blob/e064a81b793abdda1fd0165caa2931a21bd2c8d0/HID%20Wiimote/WiimoteState.c#L451

GuitarState->WhammyBar = 0xFF & ((0x1F & GuitarData[2]) << 3);
GuitarState->TouchBar = 0xFF & ((0x1F & GuitarData[3]) << 3);

Index 2 is the TouchBar and Index 3 is the Whammy Bar. So swap those.