AnalogController: Fix inverted motor binding

This commit is contained in:
Connor McLaughlin 2020-06-05 22:32:51 +10:00
parent 88502e130e
commit 009e474c51
1 changed files with 2 additions and 2 deletions

View File

@ -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;