Skip to content

An extension from the original Gamepad API Demo that includes all buttons, axes, dpad and sticks.

License

Notifications You must be signed in to change notification settings

DarknessFX/Gamepad-API-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

 .----------------.  .----------------.  .----------------. 
| .--------------. || .--------------. || .--------------. |
| |  ________    | || |  _________   | || |  ____  ____  | |
| | |_   ___ `.  | || | |_   ___  |  | || | |_  _||_  _| | |
| |   | |   `. \ | || |   | |_  \_|  | || |   \ \  / /   | |
| |   | |    | | | || |   |  _|      | || |    > `' <    | |
| |  _| |___.' / | || |  _| |_       | || |  _/ /'`\ \_  | |
| | |________.'  | || | |_____|      | || | |____||____| | |
| |              | || |              | || |              | |
| '--------------' || '--------------' || '--------------' |
 '----------------'  '----------------'  '----------------' 

       DarknessFX @ https://dfx.lv | Twitter: @DrkFX

Gamepad-API-Sample

An extension from the original Gamepad API Demo that includes all buttons, axes, dpad and sticks.

Features

  • 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.

Live Demo

https://darknessfx.github.io/gamepad.html

Showcase

Gameapi Demo Showcase

Getting Started

Prerequisites

  • Modern browser.
  • Gamepad connected to your computer.
  • Page hosted on HTTPS can be required for some browsers.

Installing

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.

Versioning

v1.0 - Released.

Acknowledgments

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 \

License

@Copyleft all wrongs reserved.

DarknessFX @ https://dfx.lv | Twitter: @DrkFX
https://github.com/DarknessFX/Gamepad-API-Sample

About

An extension from the original Gamepad API Demo that includes all buttons, axes, dpad and sticks.

Topics

Resources

License

Stars

Watchers

Forks

Languages