summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-11-14 23:16:42 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-11-14 23:16:42 +0000
commita5cde0d45b8a888cd55bbbef6dcb156ddcb73bcc (patch)
treea768aad8a4271b8bced745122ed44bacee4cb8e0 /Source
parentf8c2dcaa4eb49d6e91b7f603f3f6ec3f7792f885 (diff)
refine changes made in r4567
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4576 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp
index 31c82068ba..015d639abd 100644
--- a/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp
+++ b/Source/Plugins/Plugin_Wiimote/Src/FillReport.cpp
@@ -936,10 +936,9 @@ void FillReportExtension(wm_extension& _ext)
// Get adjusted pad state values
int _Lx, _Ly, _Rx, _Ry, _Tl, _Tr;
PadStateAdjustments(_Lx, _Ly, _Rx, _Ry, _Tl, _Tr);
- // The Y-axis is inverted, but we should keep its initialization center value
- // till it is touched for the first time
- if (_Ly != g_nu.jy.center) _Ly = 0xFE - _Ly;
- if (_Ry != g_nu.jy.center) _Ry = 0xFE - _Ry;
+ // The Y-axis is inverted
+ _Ly = 0xff - _Ly;
+ _Ry = 0xff - _Ry;
/* This is if we are also using a real Nunchuck that we are sharing the
calibration with. It's not needed if we are using our default
@@ -1082,10 +1081,9 @@ void FillReportClassicExtension(wm_classic_extension& _ext)
// Get adjusted pad state values
int _Lx, _Ly, _Rx, _Ry, _Tl, _Tr;
PadStateAdjustments(_Lx, _Ly, _Rx, _Ry, _Tl, _Tr);
- // The Y-axis is inverted, but we should keep its initialization center value
- // till it is touched for the first time
- if (_Ly != g_ClassicContCalibration.Ly.center) _Ly = 0xFE - _Ly;
- if (_Ry != g_ClassicContCalibration.Ry.center) _Ry = 0xFE - _Ry;
+ // The Y-axis is inverted
+ _Ly = 0xff - _Ly;
+ _Ry = 0xff - _Ry;
/* This is if we are also using a real Classic Controller that we
are sharing the calibration with. It's not needed if we are
@@ -1132,10 +1130,9 @@ void FillReportClassicExtension(wm_classic_extension& _ext)
// Get adjusted pad state values
int _Lx, _Ly, _Rx, _Ry, _Tl, _Tr;
PadStateAdjustments(_Lx, _Ly, _Rx, _Ry, _Tl, _Tr);
- // The Y-axis is inverted, but we should keep its initialization center value
- // till it is touched for the first time
- if (_Ly != g_ClassicContCalibration.Ly.center) _Ly = 0xFE - _Ly;
- if (_Ry != g_ClassicContCalibration.Ry.center) _Ry = 0xFE - _Ry;
+ // The Y-axis is inverted
+ _Ly = 0xff - _Ly;
+ _Ry = 0xff - _Ry;
/* This is if we are also using a real Classic Controller that we
are sharing the calibration with. It's not needed if we are