From 973441d7033318b4e62f00e42e7487db7a764e1a Mon Sep 17 00:00:00 2001 From: ayuanx Date: Sat, 5 Dec 2009 10:50:35 +0000 Subject: [PATCH] Revert "shake" to the previous fierce one. Yes, some games require you to shake as hard as you possibly can. So better keep shake always hard. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4643 8ced0084-cf51-0410-be5f-012b33b47a6e --- .../Plugins/Plugin_Wiimote/Src/FillReport.cpp | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp index 1a5d63f34f..89e2744f3b 100644 --- a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp +++ b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp @@ -444,20 +444,32 @@ void SingleShake(u8 &_x, u8 &_y, u8 &_z, int wm) switch(Shake[wm]) { case 1: + case 3: _x = g_wm.cal_zero.x / 2; _y = g_wm.cal_zero.y / 2; _z = g_wm.cal_zero.z / 2; break; - case 2: - _x = 0x80; - _y = 0x80; - _z = 0x80; - break; - case 3: + case 5: + case 7: _x = (0xFF - g_wm.cal_zero.x ) / 2; _y = (0xFF - g_wm.cal_zero.y ) / 2; _z = (0xFF - g_wm.cal_zero.z ) / 2; break; + case 2: + _x = 0x00; + _y = 0x00; + _z = 0x00; + break; + case 6: + _x = 0xFF; + _y = 0xFF; + _z = 0xFF; + break; + case 4: + _x = 0x80; + _y = 0x80; + _z = 0x80; + break; default: Shake[wm] = -1; _x = g_wm.cal_zero.x;