# controller-input

> Unifies browser user input sources into a simple controller model, useful for loop driven applications like games

Latest version **0.3.4** (published 2022-03-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install controller-input
pnpm add controller-input
yarn add controller-input
bun add controller-input
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.4 |
| Published | 2022-03-28 |
| First published | 2020-11-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 87.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Michal Jez |
| Maintainers | mjez29 |
| Keywords | keyboard, gamepad, mouse, controller, touch, pointer |

## Links

- npm: https://www.npmjs.com/package/controller-input
- npm.io page: https://npm.io/package/controller-input

## Recent versions

- 0.3.4 (latest) — 2022-03-28
- 0.3.3 — 2022-03-01
- 0.3.2 — 2021-08-12
- 0.3.1 — 2021-08-12
- 0.3.0 — 2021-08-12
- 0.2.2 — 2020-12-05
- 0.2.1 — 2020-12-05
- 0.2.0 — 2020-12-02
- 0.1.2 — 2020-11-30
- 0.1.1 — 2020-11-27
- 0.1.0 — 2020-11-27

## README

# controller-input

Simple, unified user input.

In a browser users have numerous ways to cause input events: they can press a key, move a mouse, touch their screen, or even move a joystick on a gamepad. `controller-input` abstracts all of this away while exposing a simple `Controller` model capable of handling and normalizing any input a user sends at it.

---
_Source: https://npm.io/package/controller-input · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
