Skip to content

starwards/bestyled-gamepad

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@BeStyled/gamepad

A HTML5 gamepad component for React with responsive preview.

The buttons light up as they are pressed, and can be picked up in the Mobx/Redux store.

Supports any HTML connected gamepad with standard mappings.

For example, use a wired XBox One Controller on a Mac and Chrome with 360Controller

Example View (Static)

Xbox One Controller

See Live Demo and connect your gamepad to this browser.

Usage

render() {
    return (
        <Panel>
             <GamepadDisplay />
        </Panel>
    );
  }

To Do

  • Update example to use npm @bestyled/gamepad

License

Apache 2.0

About

A stylish gamepad component for React, Preact, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.0%
  • HTML 1.0%