mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
input: add vibration multiplier
This commit is contained in:
parent
9c5584956e
commit
1cff5b35d4
12 changed files with 68 additions and 78 deletions
|
|
@ -551,11 +551,8 @@ void ds3_pad_handler::apply_pad_data(const pad_ensemble& binding)
|
|||
|
||||
cfg_pad* config = dev->config;
|
||||
|
||||
const int idx_l = config->switch_vibration_motors ? 1 : 0;
|
||||
const int idx_s = config->switch_vibration_motors ? 0 : 1;
|
||||
|
||||
const u8 speed_large = config->enable_vibration_motor_large ? pad->m_vibrateMotors[idx_l].m_value : 0;
|
||||
const u8 speed_small = config->enable_vibration_motor_small ? pad->m_vibrateMotors[idx_s].m_value : 0;
|
||||
const u8 speed_large = config->get_large_motor_speed(pad->m_vibrateMotors);
|
||||
const u8 speed_small = config->get_small_motor_speed(pad->m_vibrateMotors);
|
||||
|
||||
const bool wireless = dev->cable_state == 0;
|
||||
const bool low_battery = dev->battery_level < 25;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue