e-gamepad
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

Demo

-demo1

-demo2

-demo3

-npm

install

yarn add e-gamepad

use

import { GamePad, Event } from "./dist/e-gamepad.esm.js";
const fps = 60;
const pad = new GamePad({ fps });
pad.on(Event.Down, (data) => {
    // ...
});


pad.onAll((data) => {
    // ...
});

Readme

Keywords

Package Sidebar

Install

npm i e-gamepad

Weekly Downloads

1

Version

0.5.0

License

MIT

Unpacked Size

48.2 kB

Total Files

14

Last publish

Collaborators

  • ahaoboy