Created
April 28, 2013 16:03
-
-
Save dwilkins/5477339 to your computer and use it in GitHub Desktop.
Trouble using microevent.js with virtualjoystick.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
#crawler-js-container | |
#crawler-js | |
:coffeescript | |
window.joystick = {}; | |
($ document).ready -> | |
MicroEvent.mixin VirtualJoystick | |
window.joystick = new VirtualJoystick({ | |
container : document.getElementById('crawler-js-container'), | |
mouseSupport : true | |
}) | |
window.joystick.bind '_onMove', -> | |
console.log 'notified date', date | |
= javascript_include_tag "virtualjoystick/virtualjoystick.js" | |
= javascript_include_tag "microevents/microevent-debug.js" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generated Javascript