mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-17 02:07:51 +00:00
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
3281c3b1cb
commit
06bc7678ba
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