Nunchuk? October 23, 2010 02:46PM | Registered: 13 years ago Posts: 9 |
Re: Nunchuk? October 23, 2010 02:50PM | Registered: 13 years ago Posts: 37 |
Quote
ShadowSpace
How do I use the Nunchuk in my games?
Quote
expansion_t e;
int nx;
int ny;
WPAD_Expansion(WPAD_CHAN_0, &e);
if(e.type != WPAD_EXP_NUNCHUK)
{
iprintf("Nunchuk not attached to Wiimote 0");
}
nx = e.nunchuk.js.pos.x - e.nunchuk.js.center.x;
ny = e.nunchuk.js.pos.y - e.nunchuk.js.center.y;
Re: Nunchuk? October 23, 2010 08:16PM | Registered: 14 years ago Posts: 552 |