mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-26 20:15:03 +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
@ -489,7 +489,7 @@ int PS4_SYSV_ABI scePadSetVibration(s32 handle, const OrbisPadVibrationParam* pP
|
|||||||
auto* controller = Common::Singleton<Input::GameController>::Instance();
|
auto* controller = Common::Singleton<Input::GameController>::Instance();
|
||||||
u16 smallFreq = (u16)(((float)pParam->smallMotor / 255.0f) * 65535.0f);
|
u16 smallFreq = (u16)(((float)pParam->smallMotor / 255.0f) * 65535.0f);
|
||||||
u16 bigFreq = (u16)(((float)pParam->largeMotor / 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;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user