AnalogController: Fix inverted motor binding
This commit is contained in:
parent
88502e130e
commit
009e474c51
|
@ -254,7 +254,7 @@ bool AnalogController::Transfer(const u8 data_in, u8* data_out)
|
|||
case State::GetStateButtonsLSB:
|
||||
{
|
||||
if (m_rumble_unlocked)
|
||||
SetMotorState(0, data_in);
|
||||
SetMotorState(1, data_in != 0 ? 255 : 0);
|
||||
|
||||
*data_out = Truncate8(m_button_state);
|
||||
m_state = State::GetStateButtonsMSB;
|
||||
|
@ -265,7 +265,7 @@ bool AnalogController::Transfer(const u8 data_in, u8* data_out)
|
|||
case State::GetStateButtonsMSB:
|
||||
{
|
||||
if (m_rumble_unlocked)
|
||||
SetMotorState(1, data_in);
|
||||
SetMotorState(0, data_in);
|
||||
|
||||
*data_out = Truncate8(m_button_state >> 8);
|
||||
m_state = m_analog_mode ? State::GetStateRightAxisX : State::Idle;
|
||||
|
|
Loading…
Reference in New Issue