mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Don't process further when vibration intensity is 0
This commit is contained in:
parent
ddc4346da8
commit
db78918d34
@ -3,6 +3,10 @@ if (!window.BX_ENABLE_CONTROLLER_VIBRATION) {
|
||||
}
|
||||
|
||||
const intensity = window.BX_VIBRATION_INTENSITY;
|
||||
if (intensity === 0) {
|
||||
return void(0);
|
||||
}
|
||||
|
||||
if (intensity < 1) {
|
||||
e.leftMotorPercent *= intensity;
|
||||
e.rightMotorPercent *= intensity;
|
||||
|
Loading…
x
Reference in New Issue
Block a user