mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-24 10:23:01 -06:00
core/hid: Fix faulty analog triggers
This commit is contained in:
parent
5e732e7aec
commit
6aac5d4c27
1 changed files with 2 additions and 2 deletions
|
@ -670,7 +670,7 @@ void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callbac
|
||||||
const auto trigger_value = TransformToTrigger(callback);
|
const auto trigger_value = TransformToTrigger(callback);
|
||||||
|
|
||||||
// Only read trigger values that have the same uuid or are pressed once
|
// Only read trigger values that have the same uuid or are pressed once
|
||||||
if (controller.stick_values[index].uuid != uuid) {
|
if (controller.trigger_values[index].uuid != uuid) {
|
||||||
if (!trigger_value.pressed.value) {
|
if (!trigger_value.pressed.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -686,7 +686,7 @@ void EmulatedController::SetTrigger(const Common::Input::CallbackStatus& callbac
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto trigger = controller.trigger_values[index];
|
const auto& trigger = controller.trigger_values[index];
|
||||||
|
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case Settings::NativeTrigger::LTrigger:
|
case Settings::NativeTrigger::LTrigger:
|
||||||
|
|
Loading…
Reference in a new issue