acmcsuf.com
acmcsuf.com copied to clipboard
Gamepad API: Support gamepad focus interactions
What's your idea?
When visiting any page on acmcsuf.com, visitors are able to sequentially focus on focusable UI elements via the Tab key on their keyboard. See Keyboard Navigation.
It is theoretically possible to use the gamepad button press events to invoke focus interactions on the website. The L and R gamepad trigger buttons could be used to scroll the website page.
Implementation
The Gamepad API allows developers to listen for compatible gamepad controller connections on the visitor's device. See Connecting to a gamepad.
Note: Button layouts on supported gamepad controllers may vary, so visitors may edit their gamepad navigation preferences.
References
- https://developer.mozilla.org/en-US/docs/Web/Accessibility/An_overview_of_accessible_web_applications_and_widgets#keyboard_navigation
- https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API
- https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API#connecting_to_a_gamepad
- https://gamepad-tester.com/
- https://www.voorhoede.nl/en/blog/navigating-the-web-with-a-gamepad/