summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2024-10-11 18:56:20 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2024-10-11 19:38:38 -0500
commitccdce615eccf7c95d3152a35e17689cc9b1c9ed0 (patch)
tree4ae527d107a893098efa6c70efee5e0604563857 /Source/Core/InputCommon/ControllerEmu/ControlGroup
parentd6e10e586af3cbe8e045babf1d7727e89a35752e (diff)
ControllerEmu: Change trigger threshold check to >= instead of > and set minimum threshold in UI to 1% to prevent user error.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControlGroup/MixedTriggers.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/MixedTriggers.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/MixedTriggers.cpp
index 8783087650..e87d5ebadf 100644
--- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/MixedTriggers.cpp
+++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/MixedTriggers.cpp
@@ -28,7 +28,7 @@ MixedTriggers::MixedTriggers(const std::string& name_)
_trans("%"),
// i18n: Refers to the "threshold" setting for pressure sensitive gamepad inputs.
_trans("Input strength required for activation.")},
- 90, 0, 100);
+ 90, 1, 100);
}
void MixedTriggers::GetState(u16* const digital, const u16* bitmasks, ControlState* analog,
@@ -51,7 +51,7 @@ void MixedTriggers::GetState(u16* const digital, const u16* bitmasks, ControlSta
std::min(ApplyDeadzone(controls[trigger_count + i]->GetState(), deadzone), 1.0);
// Apply threshold:
- if (button_value > threshold)
+ if (button_value >= threshold)
{
// Fully activate analog:
analog_value = 1.0;
@@ -87,7 +87,7 @@ void MixedTriggers::GetState(u16* digital, const u16* bitmasks, ControlState* an
ControlState analog_value = ApplyDeadzone(controls[trigger_count + i]->GetState(), deadzone);
// Apply threshold:
- if (button_value > threshold)
+ if (button_value >= threshold)
{
analog_value = 1.0;
button_bool = true;