Skip to content

Commit

Permalink
Fixes motion control
Browse files Browse the repository at this point in the history
  • Loading branch information
kekus-pekus committed Aug 20, 2018
1 parent 991f5fd commit f817672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/static/javascript/controller/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ if (typeof io === 'undefined') {
var sensorsMode = false;
$(window).on("deviceorientation", function (event) {
if (sensorsMode) {
var x = (event.originalEvent.gamma*-1 + 60) * 2.3 + 50;
var y = (event.originalEvent.beta + 60) * 2.3;
var x = (event.originalEvent.beta + 70) * 2.3;
var y = (event.originalEvent.gamma*-1 + 60) * 2.3 + 50;
updatePlayerXY(x, y);
}
});
Expand Down

0 comments on commit f817672

Please sign in to comment.