jloehr / HID-Wiimote

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

Z-axis ("yaw") not registering #58

Open asilano opened 3 years ago

asilano commented 3 years ago

Using a Wii remote (with attached MotionPlus, and nunchuk).

I've successfully made Windows 10 recognise the wiimote as a games controller, and can access the controller properties. Buttons all register, nunchuk stick controls one set of X/Y axes. X rotation responds to rotating the wiimote about the long axis; Y rotation to tipping it up and down.

But nothing reacts to "Yawing" the remote (rotating it about a vertical axis passing through the home button) - the Z axis and Z rotation bars never move.

Is this expected?

jloehr commented 3 years ago

It is currently by design. The driver doesn't support MotionPlus (as in doesn't use any of its sensors). So for the positional tracking of the Wii Remote, it is only using the Wii Remote build in accelerometer. That accelerometer picks up gravity (downward force, when idle on a flat surface). Using that downward vector you can give a rough position on the two orthogonal axes while not in quick motion. However you are unable to track any rotation round that downward vector itself.