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
See Live Demo and connect your gamepad to this browser.
render() {
return (
<Panel>
<GamepadDisplay />
</Panel>
);
}
- Update example to use npm @bestyled/gamepad
Apache 2.0