Merge pull request #1174 from ggrtk/analog-controller

AnalogController: Disallow analog-to-dpad in config mode
This commit is contained in:
Connor McLaughlin 2020-12-09 00:22:57 +10:00 committed by GitHub
commit b79d025e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ void AnalogController::SetMotorState(u8 motor, u8 value)
u8 AnalogController::GetExtraButtonMaskLSB() const
{
if (!m_analog_dpad_in_digital_mode || m_analog_mode)
if (!m_analog_dpad_in_digital_mode || m_analog_mode || m_configuration_mode)
return 0xFF;
static constexpr u8 NEG_THRESHOLD = static_cast<u8>(128.0f - (127.0 * 0.5f));