# fyogametable

> Fyo Game Table API

Latest version **1.0.0** (published 2017-10-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install fyogametable
pnpm add fyogametable
yarn add fyogametable
bun add fyogametable
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-10-02 |
| First published | 2017-10-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 16 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ghoofman |

## Links

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

## Dependencies (16)

- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [grunt](https://npm.io/package/grunt.md) ^1.0.1
- [jshint](https://npm.io/package/jshint.md) ^2.9.4
- [lazypipe](https://npm.io/package/lazypipe.md) ^1.0.1
- [gulp-less](https://npm.io/package/gulp-less.md) ^3.3.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8
- [gulp-cached](https://npm.io/package/gulp-cached.md) ^1.1.1
- [gulp-concat](https://npm.io/package/gulp-concat.md) ^2.6.1
- [gulp-jshint](https://npm.io/package/gulp-jshint.md) ^2.0.4
- [gulp-rename](https://npm.io/package/gulp-rename.md) ^1.2.2
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) ^2.1.2
- [event-stream](https://npm.io/package/event-stream.md) ^3.3.4
- [gulp-csslint](https://npm.io/package/gulp-csslint.md) ^1.0.0
- [jshint-stylish](https://npm.io/package/jshint-stylish.md) ^2.2.1
- [gulp-minify-css](https://npm.io/package/gulp-minify-css.md) ^1.2.4
- [gulp-load-plugins](https://npm.io/package/gulp-load-plugins.md) ^1.5.0

## Recent versions

- 1.0.0 (latest) — 2017-10-02

## README

# Fyo Game Table Controller API
Fyo Game Table javascript API for creating Socket Game Pad Controllers


## Install

```
bower install fyogametable
```

![Base Controller Example](http://i.imgur.com/SgJQv3Z.png)

## Usage

### Connection and basic messages
```javascript
var connecter = new FYO.FyoConnection('base_controller' /*required*/);

// Example Message to send
connector.Send('Hello', { world: 1337 });

// Example Receive
connector.on('SGUpdateMsg', function(packet) {
  if(packet.MessageType == 'Points') {
    alert('I got ' + packet.data + ' points!');
  }
});

// or
connector.on('Points', function(data) {
  alert('I got ' + data + ' points!');
});

```

### Rendered Controls

```javascript
var thumbstick = new FYO.ThumbStick3D(connecter, {
    side: false,
    container: 'mainContainer',
    onmoved: function (data) {
        connecter.SetAxis(FYO.AXIS[0], data.x, FYO.AXIS[1], -data.y);
    }
});

var button = new FYO.Button3D(connecter, {
    container: 'mainContainer',
    image: '/fyogametable/assets/imgs/Blue_B.png',
    ondown: function () {
        connecter.SetButtonOn(FYO.BUTTON[0]);
    },
    onup: function () {
        connecter.SetButtonOff(FYO.BUTTON[0]);
    }
});
```

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