Non-intrusive nunchuk stick. The received stick only kicks in when the stick configured in settings is untouched.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5837 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c8ddcb9df1
commit
bd4d583ea9
|
@ -19,8 +19,11 @@ void UDPNunchuk::GetState( u8* const data, const bool focus )
|
||||||
wrp->inst->getNunchuck(x,y,mask);
|
wrp->inst->getNunchuck(x,y,mask);
|
||||||
if (mask&UDPWM_NC) ncdata->bt&=~NUNCHUK_C;
|
if (mask&UDPWM_NC) ncdata->bt&=~NUNCHUK_C;
|
||||||
if (mask&UDPWM_NZ) ncdata->bt&=~NUNCHUK_Z;
|
if (mask&UDPWM_NZ) ncdata->bt&=~NUNCHUK_Z;
|
||||||
|
if ((ncdata->jx==0x80)&&(ncdata->jy==0x80))
|
||||||
|
{
|
||||||
ncdata->jx=u8(0x80+x*127);
|
ncdata->jx=u8(0x80+x*127);
|
||||||
ncdata->jy=u8(0x80+y*127);
|
ncdata->jy=u8(0x80+y*127);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue