Skip to content

samiare/Controller.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Controller.js

A library designed to make the Gamepad API easier to use for non-gaming applications.

Controller.js documentation
Try it out now

Features

Quick Start

  1. Download the lastest build.

  2. Unpack the ZIP file and copy the library and (optionally) the layouts add-on to your project files.

  3. Include the library and layouts add-on just before your closing <body> tag:

    <script src="path/to/Controller.min.js"></script>
    <script src="path/to/Controller.layouts.min.js"></script> <!-- optional -->
  4. Start listening for gamepads with Controller.search().

  5. Read the documentation and build something cool.

Compatibility

The main requirement of Controller.js is the Gamepad API itself. However it's only been tested and guaranteed to work in the following:

  • Chrome 52+
  • Firefox 48+
  • Edge 14+

For up-to-date information on the status of the Gamepad API in browsers, check Can I use.


The MIT License (MIT)

Copyright © 2016 Samir Zahran

About

A library designed to make the Gamepad API easier to use for non-gaming applications.

Resources

Stars

Watchers

Forks

Packages

No packages published