Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGamepad should be live #23269
Open
Gamepad should be live #23269
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current Gamepad impl requires a new
getGamepads()request to get updated gamepad state. This doesn't match what browsers do, see immersive-web/webxr#608 (comment) . TheGamepadobjects once obtained should be keeping themselves up to date.We'd need some kind of way for a page to register interest in gamepad info and then get gamepad updates every now and then. Alternatively, it should be able to request gamepad info realtime whenever the user accesses a gamepad attribute.
(We should figure out what Firefox does and do that, probably)
cc @MortimerGoro