jloehr / HID-Wiimote

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

Nunchuk Accelerometer should have their own axes as well. #57

Open jgcodes2020 opened 3 years ago

jgcodes2020 commented 3 years ago

The driver provides for 6 axes. I assume when a Wii U Pro Controller/Wii Classic Controller is connected, 4 of the axes go to the two sticks, with 2 left for accelerometers.

The nunchuk also has an accelerometer. If I connect a Wiimote + Nunchuk, the accelerometer axes of the nunchuck should show up as well.

jloehr commented 3 years ago

Yes, the Nunchuck has an accelerometer. However an accelerometer tracks change in motion, neither position nor orientation in space. So, mapping the raw accelerometer data to an axis doesn't bring any benefit.

Accelerometer can be used to detect shaking though. This could then be mapped to either a button, like one quick shake to trigger an action, or to a single axis to track the shake intensity for e.g. throttle.

jloehr commented 3 years ago

Oh, wait I think it does pick up gravity, so you can actually track its position on two axes. Can't remember why I didn't map the data 🤔