Last active
September 6, 2016 18:00
-
-
Save samiare/cf79e7ef246588e8ddbdca467472ab67 to your computer and use it in GitHub Desktop.
Controller.js Analog Stick Events Example
This file contains hidden or 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
window.addEventListener("gc.analog.start", function(event) { | |
console.log(event.detail); | |
}, false); | |
>> AnalogStick { | |
>> controllerIndex: 0, | |
>> time: 4526.165, | |
>> name: "LEFT_ANALOG_STICK", | |
>> position: { x: 0, y: 0 }, | |
>> angle: { degrees: NaN, radians: NaN } | |
>> } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment