Last active
September 6, 2016 18:00
-
-
Save samiare/35aedaf38f565096205c5ec1a3836d6a to your computer and use it in GitHub Desktop.
Controller.js Quick Start JS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Controller.search(); | |
window.addEventListener("gc.controller.found", function(event) { | |
var controller = event.detail.controller; | |
console.log("Controller found at index %s.", controller.index); | |
console.log("'%s' is ready!", controller.name); | |
}, false); | |
>> "Controller found at index 0." | |
>> "'Wireless Controller' is ready!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment