HID-Wiimote icon indicating copy to clipboard operation
HID-Wiimote copied to clipboard

Nunchuk Accelerometer should have their own axes as well.

Open jgcodes2020 opened this issue 3 years ago • 2 comments

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.

jgcodes2020 avatar Nov 07 '20 14:11 jgcodes2020

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 avatar Jan 28 '21 19:01 jloehr

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 🤔

jloehr avatar Jan 28 '21 19:01 jloehr