Last active
August 1, 2017 12:38
-
-
Save emilwidlund/6d993ed4a3fa63a8af63d02cb3b2d66a to your computer and use it in GitHub Desktop.
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
| Gamepad.on 'gamepadevent', (e) -> | |
| switch e.keyCode | |
| when 39 | |
| print 'Stick going right' | |
| when 37 | |
| print 'Stick going left' | |
| when 40 | |
| print 'Stick going down' | |
| when 38 | |
| print 'Stick going up' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment