Hendrik Langer 4 years ago
parent
commit
79195f1da2
  1. 4
      raspberry/roberto/views/frontend/templates/gamepad.js
  2. 1
      raspberry/roberto/views/frontend/templates/index.html

4
raspberry/roberto/views/frontend/templates/gamepad.js

@ -108,8 +108,8 @@ var joystick_axes = {
}); });
joystick.on('move', function(evt, data) { joystick.on('move', function(evt, data) {
joystick_axes.x1 = data.vector.x; joystick_axes.x2 = data.vector.x;
joystick_axes.y2 = -data.vector.y; joystick_axes.y1 = -data.vector.y;
joystick_axes.moved = true; joystick_axes.moved = true;
}); });
joystick.on('end', function(evt, data) { joystick.on('end', function(evt, data) {

1
raspberry/roberto/views/frontend/templates/index.html

@ -46,6 +46,7 @@
z-index: 1; z-index: 1;
top: 20px; top: 20px;
right: 50px right: 50px
text-align: right;
} }
.stats-box { .stats-box {
display: none; display: none;

Loading…
Cancel
Save