UNPKG

gamecontroller.js

Version:

A JavaScript library that lets you handle, configure, and use gamepad and controllers on a browser, using the Gamepad API

11 lines (9 loc) 272 B
// This file is the entry point import { error, isGamepadSupported } from './tools'; import { MESSAGES } from './constants'; import gameControl from './gamecontrol'; if (isGamepadSupported()) { window.gameControl = gameControl; } else { error(MESSAGES.NO_SUPPORT); }