My ps4 controller does not vibrate?

As in the title, my ps4 controller does not vibrate at all when the button is being pressed. Right now i am on pc windows 11 and have also tried it with my android phone but it doesnt vibrate on either platforms. I have tested the vibration on my pc settings and it works there but not in godot.
Please help

this is my code for the buttons:

func _on_button_pressed():
Input.start_joy_vibration(0, 1, 0, 1)
print(“Controller vibrated”)

func _on_touch_screen_button_pressed():
Input.start_joy_vibration(0, 0.5, 0.5, 1)
print(“Controller vibrated”)

If this comment by @bruvzg is correct, it’s not currently supported:

Currently used API (XInput/DirectInput) only support vibration for the XBox controllers (and controllers pretending to be XBox controller).

I experienced the same issue in Godot 4.2.2 stable official and Win10.

DualShock4 (standard PS4 controller), DualSense (standard PS5 controller), both connected via USB, and Switch Pro Controller don’t work, they don’t rumble.

But instead my Xbox compatible controller (the Xbox One controller, connected via usb) works in the editor, it rumbles properly.

1 Like