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”)
opened 11:49AM - 04 Mar 24 UTC
bug
topic:input
### Tested versions
- Reproducible in Godot Engine v4.2.1.stable.official [b09f… 793f5]
### System information
Godot v4.2.1.stable - Windows 10.0.22631 - GLES3 (Compatibility) - NVIDIA GeForce RTX 3080 Laptop GPU (NVIDIA; 31.0.15.2824) - AMD Ryzen 9 5900HX with Radeon Graphics (16 Threads)
### Issue description
I am experiencing an issue with the Input.start_joy_vibration function in Godot Engine, specifically when attempting to utilize vibration features during gameplay. This problem arises exclusively when using the Nacon PS4 Revolution Pro Controller. Despite correctly implementing the vibration code, no feedback is observed with this particular controller.
However, when switching to a PS4 DualShock controller paired with an 8bitdo USB adapter, the vibration functionality operates flawlessly, indicating that the issue is not with the code itself but rather with compatibility between the Godot Engine and the Nacon controller.
Further investigation into this matter revealed that the Nacon PS4 Revolution Pro Controller functions as expected in other Steam games, providing proper vibration feedback. This observation leads me to believe that the root cause is a specific compatibility issue between the Godot Engine and the Nacon controller.
I have also conducted a thorough search on Google and reviewed the existing issues on this repository but found no mention of similar problems with the Nacon PS4 Revolution Pro Controller, though there are reports for other controllers. This absence of reports suggests that the issue might not be widely recognized or reported yet.
I am reaching out to the community for insights or solutions regarding this compatibility issue. Any assistance or guidance on resolving this problem would be greatly appreciated.
### Steps to reproduce
```gdscript
extends Node2D
func _process(delta):
Input.start_joy_vibration(0, 1, 1, 1)
```
### Minimal reproduction project (MRP)
```gdscript
extends Node2D
func _process(delta):
Input.start_joy_vibration(0, 1, 1, 1)
```
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