Skip to content

Add support for web joypad vibration#114344

Open
Nintorch wants to merge 1 commit intogodotengine:masterfrom
Nintorch:web-joypad-vibration
Open

Add support for web joypad vibration#114344
Nintorch wants to merge 1 commit intogodotengine:masterfrom
Nintorch:web-joypad-vibration

Conversation

@Nintorch
Copy link
Copy Markdown
Member

@Nintorch Nintorch commented Dec 26, 2025

Fixes #96985

This PR adds support for web joypad vibration. I tested it with my DualShock 4 and Microsoft Edge.
As for the comment that points out that vibration on macOS only works in Safari, see #109645 (comment).
See also libsdl-org/SDL#13757.
TODO:

  • Remove the limit on vibration duration just like how it works in SDL
  • has_joy_vibration()
  • Remove Android docs note

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Controller vibration not working in HTML5

2 participants