Skip to content

Xbox Wireless Controller + Gamepad API + React + requestAnimationFrame

License

Notifications You must be signed in to change notification settings

detj/gamepad-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gamepad API + Xbox Wireless Controller

An exploration of using an Xbox Wireless Controller using the Gamepad API. Information like button presses are rendered using requestAnimationFrame inside a React app.

Controller Hardware

Tested using the standard Xbox One X Wireless Controller connected over Bluetooth or USB.

Run

  1. Clone the repository
  2. Run yarn or npm install
  3. Run yarn start or npm start
  4. Connect your controller and press any button

Demo

Checkout the video

About

Xbox Wireless Controller + Gamepad API + React + requestAnimationFrame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published