.----------------. .----------------. .----------------.
| .--------------. || .--------------. || .--------------. |
| | ________ | || | _________ | || | ____ ____ | |
| | |_ ___ `. | || | |_ ___ | | || | |_ _||_ _| | |
| | | | `. \ | || | | |_ \_| | || | \ \ / / | |
| | | | | | | || | | _| | || | > `' < | |
| | _| |___.' / | || | _| |_ | || | _/ /'`\ \_ | |
| | |________.' | || | |_____| | || | |____||____| | |
| | | || | | || | | |
| '--------------' || '--------------' || '--------------' |
'----------------' '----------------' '----------------'
DarknessFX @ https://dfx.lv | Twitter: @DrkFX
An extension from the original Gamepad API Demo that includes all buttons, axes, dpad and sticks.
- Visual presentations of buttons triggered.
- Axes presented as value and scale bar.
- Move a html object for each input source DPad, LStick, RStick and faceb buttons.
https://darknessfx.github.io/gamepad.html
- Modern browser.
- Gamepad connected to your computer.
- Page hosted on HTTPS can be required for some browsers.
Open the Gamepad.html on your browser and start your gamepad, if everything is setup properly the page will detect your gamepad and start to listen to inputs.
v1.0 - Released.
Thanks to :
http://chrisdavidmills.github.io/gamepad-buttons/
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 \
@Copyleft all wrongs reserved.
DarknessFX @ https://dfx.lv | Twitter: @DrkFX
https://github.com/DarknessFX/Gamepad-API-Sample