|
wiiuse
|
Unsigned x,y,z 16-bit vector. More...
#include <wiiuse.h>
Public Attributes | |
| uint16_t | x |
| uint16_t | y |
| uint16_t | z |
Unsigned x,y,z 16-bit vector.
Used for the accel field on wiimote_t, wiimote_callback_data_t, and nunchuk_t. The field is always this width - a fixed uint8-to-uint16 widening that shipped once, unconditionally, regardless of whether WIIUSE_ACCEL_10BIT is defined when the library is built. Whether the field's content is the plain 8-bit reading or the hardware's full extended precision depends on that macro:
WIIUSE_ACCEL_10BIT undefined (default):** each axis holds exactly the same 0-255 byte value wiiuse has always reported, just stored in a wider field. Numerically identical to the pre-widening behavior.WIIUSE_ACCEL_10BIT defined:** each axis holds the accelerometer's full extended-precision reading - 10-bit X / 9-bit Y / 9-bit Z for the Wii Remote, full 10-bit X/Y/Z for the Nunchuk - decoded from otherwise unused bits in the Core Buttons / Nunchuk buttons bytes that the 8-bit-only path never read.
1.8.13