diff options
| author | 2020-10-08 23:43:07 -0400 | |
|---|---|---|
| committer | 2020-11-15 23:33:20 -0500 | |
| commit | 652d6766d55acec6416dccb900a45c6660a86607 (patch) | |
| tree | 7f9c64b78ca02aa1f62de77e25fcacbb2fdc4291 /src/yuzu_cmd/config.cpp | |
| parent | controllers/npad: Stop games from vibrating incorrect controllers (diff) | |
| download | yuzu-652d6766d55acec6416dccb900a45c6660a86607.tar.gz yuzu-652d6766d55acec6416dccb900a45c6660a86607.tar.xz yuzu-652d6766d55acec6416dccb900a45c6660a86607.zip | |
configure_input: Hook up the vibration percentage spinbox
This allows setting the vibration strength percentage anywhere from 1% to 100%.
Also hooks up the remaining motion button and checkbox in the Controller Applet.
Diffstat (limited to 'src/yuzu_cmd/config.cpp')
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index feee02fcd..209350837 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp | |||
| @@ -290,6 +290,8 @@ void Config::ReadValues() { | |||
| 290 | 290 | ||
| 291 | Settings::values.vibration_enabled.SetValue( | 291 | Settings::values.vibration_enabled.SetValue( |
| 292 | sdl2_config->GetBoolean("ControlsGeneral", "vibration_enabled", true)); | 292 | sdl2_config->GetBoolean("ControlsGeneral", "vibration_enabled", true)); |
| 293 | Settings::values.vibration_strength.SetValue( | ||
| 294 | sdl2_config->GetInteger("ControlsGeneral", "vibration_strength", 100)); | ||
| 293 | Settings::values.motion_enabled.SetValue( | 295 | Settings::values.motion_enabled.SetValue( |
| 294 | sdl2_config->GetBoolean("ControlsGeneral", "motion_enabled", true)); | 296 | sdl2_config->GetBoolean("ControlsGeneral", "motion_enabled", true)); |
| 295 | Settings::values.touchscreen.enabled = | 297 | Settings::values.touchscreen.enabled = |