0.1.2 • Published 7 years ago
@bestyled/gamepad v0.1.2
@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)
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