diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-23 16:33:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 16:33:03 +0200 |
commit | 6b93b0b08cff8539699c49c41beecdcac5d9de36 (patch) | |
tree | 8f869d2f8eeb90dd75232836a2c84e678deef455 | |
parent | Merge pull request #11831 from liamwhite/hosversionbetween (diff) | |
parent | yuzu: Fix vibration reseting to 1% (diff) | |
download | yuzu-6b93b0b08cff8539699c49c41beecdcac5d9de36.tar yuzu-6b93b0b08cff8539699c49c41beecdcac5d9de36.tar.gz yuzu-6b93b0b08cff8539699c49c41beecdcac5d9de36.tar.bz2 yuzu-6b93b0b08cff8539699c49c41beecdcac5d9de36.tar.lz yuzu-6b93b0b08cff8539699c49c41beecdcac5d9de36.tar.xz yuzu-6b93b0b08cff8539699c49c41beecdcac5d9de36.tar.zst yuzu-6b93b0b08cff8539699c49c41beecdcac5d9de36.zip |
-rw-r--r-- | src/yuzu/configuration/configure_vibration.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/yuzu/configuration/configure_vibration.cpp b/src/yuzu/configuration/configure_vibration.cpp index d765e808a..68c28b320 100644 --- a/src/yuzu/configuration/configure_vibration.cpp +++ b/src/yuzu/configuration/configure_vibration.cpp @@ -89,7 +89,7 @@ void ConfigureVibration::VibrateController(Core::HID::ControllerTriggerType type auto& player = Settings::values.players.GetValue()[player_index]; auto controller = hid_core.GetEmulatedControllerByIndex(player_index); - const int vibration_strenght = vibration_spinboxes[player_index]->value(); + const int vibration_strength = vibration_spinboxes[player_index]->value(); const auto& buttons = controller->GetButtonsValues(); bool button_is_pressed = false; @@ -105,10 +105,10 @@ void ConfigureVibration::VibrateController(Core::HID::ControllerTriggerType type return; } - const int old_vibration_enabled = player.vibration_enabled; - const bool old_vibration_strenght = player.vibration_strength; + const bool old_vibration_enabled = player.vibration_enabled; + const int old_vibration_strength = player.vibration_strength; player.vibration_enabled = true; - player.vibration_strength = vibration_strenght; + player.vibration_strength = vibration_strength; const Core::HID::VibrationValue vibration{ .low_amplitude = 1.0f, @@ -121,7 +121,7 @@ void ConfigureVibration::VibrateController(Core::HID::ControllerTriggerType type // Restore previous values player.vibration_enabled = old_vibration_enabled; - player.vibration_strength = old_vibration_strenght; + player.vibration_strength = old_vibration_strength; } void ConfigureVibration::StopVibrations() { |