mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-17 13:03:03 +02:00
12 lines
318 B
JavaScript
12 lines
318 B
JavaScript
if (!window.BX_ENABLE_CONTROLLER_VIBRATION) {
|
|
return void(0);
|
|
}
|
|
|
|
const intensity = window.BX_VIBRATION_INTENSITY;
|
|
if (intensity && intensity < 1) {
|
|
e.leftMotorPercent *= intensity;
|
|
e.rightMotorPercent *= intensity;
|
|
e.leftTriggerMotorPercent *= intensity;
|
|
e.rightTriggerMotorPercent *= intensity;
|
|
}
|