-
Notifications
You must be signed in to change notification settings - Fork 16
Grunt Tasks
A handful of Grunt tasks to validate and build the Controller.js libraries.
→ Building all files
→ Building only the main library
→ Building only the layouts add-on
→ Validating javascript
→ Creating the example site
grunt build
└── dist/
├── Controller.js.zip
├── Controller.min.js
├── Controller.layouts.min.js
└── unminified/
├── Controller.js
└── Controller.layouts.js
grunt only_main
└── dist/
├── Controller.min.js
└── unminified/
└── Controller.js
grunt only_layouts
└── dist/
├── Controller.layouts.min.js
└── unminified/
└── Controller.layouts.js
grunt hint
grunt example
This script only works if you have the gh-pages
branch. It pulls the completed site from that branch and makes minor modifications.
└── example/
├── images/…
├── js/…
├── styles/…
├── favicon.ico
├── safari-pinned-icon.svg
└── index.html
The MIT License (MIT)
Copyright © 2016 Samir Zahran
Setup
Buttons & Analog Sticks
Controller Layouts
Configuring Settings
Controller Events
Button Events
Analog Stick Events
Controller.supported
Controller.controllers
Controller.controllerCount
Controller.search()
Controller.getController()
Controller.watchAll()
Controller.unwatchAll()
.connectedTimestamp
.id
.index
.inputs
.layoutInfo
.name
.watch()
.unwatch()
Settings Objects
List of Settings
settings.list()
settings.clear()
settings.update()
→ Grunt Tasks
→ Registering Settings
→ Creating Layout Maps