Skip to content

raylib.SetGamepadVibration

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Set gamepad vibration

Parameters

Parameter Default Value Note
gamepad 0
leftMotor 0.0
rightMotor 0.0
duration 0.0

Return value

None.

Notes

Example

// Vibrate gamepad 0 at full intensity for 0.5 seconds
raylib.SetGamepadVibration 0, 1.0, 1.0, 0.5

Clone this wiki locally