Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 829 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 829 Bytes

@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