From 79195f1da20fc1773acfbb791b47a9e15cdac2d5 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Thu, 6 Aug 2020 16:08:09 +0200 Subject: [PATCH] fix --- raspberry/roberto/views/frontend/templates/gamepad.js | 4 ++-- raspberry/roberto/views/frontend/templates/index.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/raspberry/roberto/views/frontend/templates/gamepad.js b/raspberry/roberto/views/frontend/templates/gamepad.js index 113cd03..2850e8d 100644 --- a/raspberry/roberto/views/frontend/templates/gamepad.js +++ b/raspberry/roberto/views/frontend/templates/gamepad.js @@ -108,8 +108,8 @@ var joystick_axes = { }); joystick.on('move', function(evt, data) { - joystick_axes.x1 = data.vector.x; - joystick_axes.y2 = -data.vector.y; + joystick_axes.x2 = data.vector.x; + joystick_axes.y1 = -data.vector.y; joystick_axes.moved = true; }); joystick.on('end', function(evt, data) { diff --git a/raspberry/roberto/views/frontend/templates/index.html b/raspberry/roberto/views/frontend/templates/index.html index f1efff3..b390aab 100644 --- a/raspberry/roberto/views/frontend/templates/index.html +++ b/raspberry/roberto/views/frontend/templates/index.html @@ -46,6 +46,7 @@ z-index: 1; top: 20px; right: 50px + text-align: right; } .stats-box { display: none;