# fuse-gamecontroller

[![AppVeyor build status](https://img.shields.io/appveyor/ci/mortend/fuse-gamecontroller/master.svg?logo=appveyor&logoColor=silver&style=flat-square)](https://ci.appveyor.com/project/mortend/fuse-gamecontroller/branch/master)
[![NPM package](https://img.shields.io/npm/v/fuse-gamecontroller.svg?style=flat-square)](https://www.npmjs.com/package/fuse-gamecontroller)
[![Slack](https://img.shields.io/badge/chat-on%20slack-blue.svg?style=flat-square)](https://slackcommunity.fusetools.com/)
[![License: MIT](https://img.shields.io/github/license/mortend/fuse-gamecontroller.svg?style=flat-square)](LICENSE)

Game controller package for [Fuse Open].

> This package makes it easy to take advantage of game controllers connected via Bluetooth or USB, using either JavaScript, TypeScript or Uno APIs, in your Fuse apps for Android or Windows/.NET (desktop preview).

[Fuse Open]: https://fuseopen.com/

## Install

```shell
npm install fuse-gamecontroller
```

This will install the `Fuse.GameController` library for [Fuse SDK](https://www.npmjs.com/package/fuse-sdk).

## Usage

```typescript
import GameController from "FuseJS/GameController"
```

To use this API in your project, you must add `"Fuse.GameController"` to `"Packages"` in your `.unoproj` file.

## Contributing

Please [report an issue](https://github.com/mortend/fuse-gamecontroller/issues) if you encounter a problem, or [open a pull request](https://github.com/mortend/fuse-gamecontroller/pulls) if you make a patch.

## License

MIT.
