mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-04 17:06:27 +00:00
[rcore] Adds implementation to SetGamepadVibration()
on PLATFORM_WEB
and updates it on PLATFORM_DESKTOP_SDL
to handle duration (#4410)
* Updates SetGamepadVibration() * Handle MAX_GAMEPAD_VIBRATION_TIME * Revert low/high parameters back to left/rightMotor * Fix missin semicolon * Convert duration to seconds * Add SetGamepadVibration() implementation to PLATFORM_WEB
This commit is contained in:
@@ -615,7 +615,7 @@ int SetGamepadMappings(const char *mappings)
|
||||
}
|
||||
|
||||
// Set gamepad vibration
|
||||
void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor)
|
||||
void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration)
|
||||
{
|
||||
TRACELOG(LOG_WARNING, "GamepadSetVibration() not implemented on target platform");
|
||||
}
|
||||
|
Reference in New Issue
Block a user