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.
This commit is contained in:
parent
e02ef3c3be
commit
652d6766d5
11 changed files with 26 additions and 3 deletions
|
@ -703,7 +703,8 @@ void Controller_NPad::VibrateController(const std::vector<DeviceHandle>& vibrati
|
|||
|
||||
// TODO: Vibrate left/right vibration motors independently if possible.
|
||||
button_state[A - BUTTON_HID_BEGIN]->SetRumblePlay(
|
||||
vibration_values[i].amp_high, vibration_values[i].amp_low,
|
||||
vibration_values[i].amp_high * Settings::values.vibration_strength.GetValue() / 100,
|
||||
vibration_values[i].amp_low * Settings::values.vibration_strength.GetValue() / 100,
|
||||
vibration_values[i].freq_high, vibration_values[i].freq_low);
|
||||
|
||||
latest_vibration_values[npad_index][device_index] = vibration_values[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue