diff --git a/raspberry/roberto/views/frontend/templates/gamepad.js b/raspberry/roberto/views/frontend/templates/gamepad.js index b561e0c..5f3afd0 100644 --- a/raspberry/roberto/views/frontend/templates/gamepad.js +++ b/raspberry/roberto/views/frontend/templates/gamepad.js @@ -154,3 +154,8 @@ setInterval(function(){ } } }, 50); + +window.addEventListener("orientationchange", function(event) { + joystick._updatePositionOfContainer(); + joystick2._updatePositionOfContainer(); +});