mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Wiimote: Show the decrypted Nunchuck calibration values in the log when a real Wiimote and Nunchuck is used. Fixed an earlier bug that made the neutral emulated nunchuck accelerometer values zero, now they are back to 0x80,0x80,0xb3.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2104 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -761,24 +761,16 @@ void FillReportExtension(wm_extension& _ext)
|
||||
// Recorded movements
|
||||
// --------------
|
||||
// Check for a playback command
|
||||
if(g_RecordingPlaying[1] < 0)
|
||||
{
|
||||
g_RecordingPlaying[1] = RecordingCheckKeys(1);
|
||||
if(g_RecordingPlaying[1] < 0) g_RecordingPlaying[1] = RecordingCheckKeys(1);
|
||||
|
||||
}
|
||||
// We should play back the accelerometer values
|
||||
else
|
||||
// We should not play back the accelerometer values
|
||||
if (!(g_RecordingPlaying[1] >= 0 && RecordingPlay(_ext.ax, _ext.ay, _ext.az, 1)))
|
||||
{
|
||||
//Console::Print("X: %u\n", _acc.x);
|
||||
//
|
||||
if (!RecordingPlay(_ext.ax, _ext.ay, _ext.az, 1))
|
||||
{
|
||||
/* These are the default neutral values for the nunchuck accelerometer according to the calibration
|
||||
data we have in nunchuck_calibration[] */
|
||||
_ext.ax = 0x80;
|
||||
_ext.ay = 0x80;
|
||||
_ext.az = 0xb3;
|
||||
}
|
||||
/* These are the default neutral values for the nunchuck accelerometer according to the calibration
|
||||
data we have in nunchuck_calibration[] */
|
||||
_ext.ax = 0x80;
|
||||
_ext.ay = 0x80;
|
||||
_ext.az = 0xb3;
|
||||
}
|
||||
// ---------------------
|
||||
|
||||
|
Reference in New Issue
Block a user