# arrow-key-controller

> A key event listener for arrow keys built in typescript

Latest version **1.0.0** (published 2019-01-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install arrow-key-controller
pnpm add arrow-key-controller
yarn add arrow-key-controller
bun add arrow-key-controller
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-01-30 |
| First published | 2019-01-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | William Roberts |
| Maintainers | wbroberts |

## Links

- npm: https://www.npmjs.com/package/arrow-key-controller
- Repository: https://github.com/wbroberts/arrow-controller
- Homepage: https://github.com/wbroberts/arrow-controller#readme
- Issues: https://github.com/wbroberts/arrow-controller/issues
- npm.io page: https://npm.io/package/arrow-key-controller

## Recent versions

- 1.0.0 (latest) — 2019-01-30

## README

# Arrow Key Controller

Super simple controller designed for canvas games that only use the arrow keys. While an arrow key is pressed down, it is true;

To use:

```javascript
import { Controller } from 'arrow-key-controller';

const controller = new Controller();

controller.init(); // adds event listener to document

controller.up; // false
controller.down; // false
controller.right; // false
controller.left; // false
```

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