mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-01 14:28:02 +03:00
refine changes made in r4567
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4576 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f8c2dcaa4e
commit
a5cde0d45b
1 changed files with 9 additions and 12 deletions
|
@ -936,10 +936,9 @@ void FillReportExtension(wm_extension& _ext)
|
||||||
// Get adjusted pad state values
|
// Get adjusted pad state values
|
||||||
int _Lx, _Ly, _Rx, _Ry, _Tl, _Tr;
|
int _Lx, _Ly, _Rx, _Ry, _Tl, _Tr;
|
||||||
PadStateAdjustments(_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
|
// The Y-axis is inverted
|
||||||
// till it is touched for the first time
|
_Ly = 0xff - _Ly;
|
||||||
if (_Ly != g_nu.jy.center) _Ly = 0xFE - _Ly;
|
_Ry = 0xff - _Ry;
|
||||||
if (_Ry != g_nu.jy.center) _Ry = 0xFE - _Ry;
|
|
||||||
|
|
||||||
/* This is if we are also using a real Nunchuck that we are sharing the
|
/* 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
|
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
|
// Get adjusted pad state values
|
||||||
int _Lx, _Ly, _Rx, _Ry, _Tl, _Tr;
|
int _Lx, _Ly, _Rx, _Ry, _Tl, _Tr;
|
||||||
PadStateAdjustments(_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
|
// The Y-axis is inverted
|
||||||
// till it is touched for the first time
|
_Ly = 0xff - _Ly;
|
||||||
if (_Ly != g_ClassicContCalibration.Ly.center) _Ly = 0xFE - _Ly;
|
_Ry = 0xff - _Ry;
|
||||||
if (_Ry != g_ClassicContCalibration.Ry.center) _Ry = 0xFE - _Ry;
|
|
||||||
|
|
||||||
/* This is if we are also using a real Classic Controller that we
|
/* 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
|
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
|
// Get adjusted pad state values
|
||||||
int _Lx, _Ly, _Rx, _Ry, _Tl, _Tr;
|
int _Lx, _Ly, _Rx, _Ry, _Tl, _Tr;
|
||||||
PadStateAdjustments(_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
|
// The Y-axis is inverted
|
||||||
// till it is touched for the first time
|
_Ly = 0xff - _Ly;
|
||||||
if (_Ly != g_ClassicContCalibration.Ly.center) _Ly = 0xFE - _Ly;
|
_Ry = 0xff - _Ry;
|
||||||
if (_Ry != g_ClassicContCalibration.Ry.center) _Ry = 0xFE - _Ry;
|
|
||||||
|
|
||||||
/* This is if we are also using a real Classic Controller that we
|
/* 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
|
are sharing the calibration with. It's not needed if we are
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue