# n3d-controller

> A basic on-screen controller for touchscreen devices

Latest version **0.0.1** (published 2013-09-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-09-11 |
| First published | 2013-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | joates |
| Maintainers | joates |
| Keywords | touch, controller, joystick |

## Links

- npm: https://www.npmjs.com/package/n3d-controller
- Repository: https://github.com/joates/n3d-controller
- Issues: https://github.com/joates/n3d-controller/issues
- npm.io page: https://npm.io/package/n3d-controller

## Recent versions

- 0.0.1 (latest) — 2013-09-11
- 0.0.0-alpha1 — 2013-07-25

## README

click here for the [demo](http://joat.es/n3d-controller/touch)

> forked from original code by Jerome Etienne.
> https://github.com/jeromeetienne/virtualjoystick.js
>
> which was inspired by this from Seb Lee-Delisle.
> http://sebleedelisle.com/2011/04/multi-touch-game-controller-in-javascripthtml5-for-ipad/

it's a virtual joystick for touchscreen.

* ```opts.container``` is the
[dom element](https://developer.mozilla.org/en/DOM/element)
on which we display joystick
* ```opts.stickElement``` is the
[dom element](https://developer.mozilla.org/en/DOM/element)
which is display for the *stick* of the joystick.
* ```opts.baseElement``` is the 
[dom element](https://developer.mozilla.org/en/DOM/element)
which is display for its *base*.
* Both elements are optional with sensible default
* you may set ```opts.mouseSupport``` to true during debug.


MIT-LICENSE.txt

Copyright (c) 2011 Jerome Etienne, http://jetienne.com

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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