Skip to content

Conversation

@sen-h
Copy link

@sen-h sen-h commented Sep 8, 2024

This patch adds gamepad support for the WASM build using the JS gamepad api, per issue #39.
Initial support is for the DualShock 4, but other gamepads should be addable as well.
On firefox for android (and perhaps others) the gamepad.id is just set to "android", making gamepad fingerprinting kind of impossible, so for now any gamepad with id:"android" is just assumed to be a DualShock 4.

This patch was tested and working on the following browsers:
ubuntu 20.04: firefox 130.0, chromium 128.0.6613.84
android 14: firefox 130.0, vanadium 128.0.6613.99

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant