mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-20 19:44:46 +00:00
- vibration only when we are actually using a gamepad, will make it better later :p
This commit is contained in:
parent
808f228e54
commit
241c8e0077
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ int PS4_SYSV_ABI scePadSetVibration(s32 handle, const OrbisPadVibrationParam* pP
|
|||
auto* controller = Common::Singleton<Input::GameController>::Instance();
|
||||
u16 smallFreq = (u16)(((float)pParam->smallMotor / 255.0f) * 65535.0f);
|
||||
u16 bigFreq = (u16)(((float)pParam->largeMotor / 255.0f) * 65535.0f);
|
||||
result = controller->GetRumble(smallFreq, bigFreq);
|
||||
result = (Config::getControllerType() == 1) ? controller->GetRumble(smallFreq, bigFreq) : 0;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue