small warning fix in PadSimple.cpp
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4584 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
43e68713a9
commit
633786f96b
|
@ -347,20 +347,20 @@ void DInput_Read(int _numPAD, SPADStatus* _pPADStatus)
|
|||
EmulateAnalogStick(
|
||||
&_pPADStatus->stickX,
|
||||
&_pPADStatus->stickY,
|
||||
(dinput.diks[pad[_numPAD].keyForControl[CTL_MAINUP]] & 0xFF),
|
||||
(dinput.diks[pad[_numPAD].keyForControl[CTL_MAINDOWN]] & 0xFF),
|
||||
(dinput.diks[pad[_numPAD].keyForControl[CTL_MAINLEFT]] & 0xFF),
|
||||
(dinput.diks[pad[_numPAD].keyForControl[CTL_MAINRIGHT]] & 0xFF),
|
||||
!!dinput.diks[pad[_numPAD].keyForControl[CTL_MAINUP]],
|
||||
!!dinput.diks[pad[_numPAD].keyForControl[CTL_MAINDOWN]],
|
||||
!!dinput.diks[pad[_numPAD].keyForControl[CTL_MAINLEFT]],
|
||||
!!dinput.diks[pad[_numPAD].keyForControl[CTL_MAINRIGHT]],
|
||||
mainstickvalue );
|
||||
|
||||
// Sub-stick (C-stick)
|
||||
EmulateAnalogStick(
|
||||
&_pPADStatus->substickX,
|
||||
&_pPADStatus->substickY,
|
||||
(dinput.diks[pad[_numPAD].keyForControl[CTL_SUBUP]] & 0xFF),
|
||||
(dinput.diks[pad[_numPAD].keyForControl[CTL_SUBDOWN]] & 0xFF),
|
||||
(dinput.diks[pad[_numPAD].keyForControl[CTL_SUBLEFT]] & 0xFF),
|
||||
(dinput.diks[pad[_numPAD].keyForControl[CTL_SUBRIGHT]] & 0xFF),
|
||||
!!dinput.diks[pad[_numPAD].keyForControl[CTL_SUBUP]],
|
||||
!!dinput.diks[pad[_numPAD].keyForControl[CTL_SUBDOWN]],
|
||||
!!dinput.diks[pad[_numPAD].keyForControl[CTL_SUBLEFT]],
|
||||
!!dinput.diks[pad[_numPAD].keyForControl[CTL_SUBRIGHT]],
|
||||
substickvalue );
|
||||
// D-pad
|
||||
if (dinput.diks[pad[_numPAD].keyForControl[CTL_DPADUP]] & 0xFF){_pPADStatus->button |= PAD_BUTTON_UP;}
|
||||
|
|
Loading…
Reference in New Issue