diff --git a/raspberry/roberto/views/frontend/templates/gamepad.js b/raspberry/roberto/views/frontend/templates/gamepad.js index f189048..ee6cf22 100644 --- a/raspberry/roberto/views/frontend/templates/gamepad.js +++ b/raspberry/roberto/views/frontend/templates/gamepad.js @@ -98,9 +98,14 @@ if (haveEvents) { var joystick = nipplejs.create({ zone: document.getElementById('controls'), mode: 'static', + //catchDistance: 150, position: {left: '50%', top: '50%'}, color: 'blue' }); + + joystick.on('move', function(evt, data) { + console.log(data); + }); /* setInterval(function(){ if (joystick) {