libogc
libogc copied to clipboard
Support for Wii Motion Plus Inside Expansions
I have 2 motion plus inside controllers, one a friend gift me and one that I bought, I can get access to all stats in the WPADData but everything related to the expansions doesnt work properly, I have to switch to my regular Wiimote without the motion plus inside and it does work, I checked this issue hoping I manage to make it work, but it doesn´t, yeah I do get the accel,orient and even the gforce but as soon as I try with the expansion (in this case nunchuk) it doesnt work until I switch between the motion plus inside to regular wiimote
Yeah I kept the WPAD_SetMotionPlus(-1, 1)
and still doesnt work
I kept everything except this part in second while if(err == WPAD_ERR_NONE)
which looks like this
if(err == WPAD_ERR_NONE) {
wd = WPAD_Data(0);
printf("\x1b[6;0H");
printf("Nunchuk Y axis: %d\n",wd->exp.nunchuk.js.pos.x);
printf("\x1b[7;0H");
printf("Nunchuk X axis: %d\n",wd->exp.nunchuk.js.pos.y);
printf("\x1b[8;0H");
printf("PITCH: %d",wd->exp.mp.rx); // frozen at 0.00
printf("\x1b[9;0H");
printf("YAW: %d",wd->exp.mp.ry); // frozen at 0.00
printf("\x1b[10;0H");
printf("ROLL: %d",wd->exp.mp.rz); // frozen at 0.00
}
I see that u guys uses wiiuse and in their repo they say that they support last gen wiimotes, so thats why im asking if is possible to get some work around the expansion cuz everything else works just fine