mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
AnalogController: Disallow analog-to-dpad in config mode
This commit is contained in:
parent
50273899c6
commit
18a4ff76e2
|
@ -216,7 +216,7 @@ void AnalogController::SetMotorState(u8 motor, u8 value)
|
||||||
|
|
||||||
u8 AnalogController::GetExtraButtonMaskLSB() const
|
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;
|
return 0xFF;
|
||||||
|
|
||||||
static constexpr u8 NEG_THRESHOLD = static_cast<u8>(128.0f - (127.0 * 0.5f));
|
static constexpr u8 NEG_THRESHOLD = static_cast<u8>(128.0f - (127.0 * 0.5f));
|
||||||
|
|
Loading…
Reference in a new issue