Skip to content

Commit

Permalink
Merge pull request #3 from xdghcnt/xdghcnt
Browse files Browse the repository at this point in the history
Fixes motion control again
  • Loading branch information
filidorwiese authored Aug 23, 2018
2 parents aedb419 + ab4b9f5 commit 485f773
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.beta + 70) * 2.3;
var y = (event.originalEvent.gamma*-1 + 60) * 2.3 + 50;
var x = (event.originalEvent.beta + 86) * 2.3;
var y = (event.originalEvent.gamma*-1 + 10) * 2.3 + 50;
updatePlayerXY(x, y);
}
});
Expand Down

0 comments on commit 485f773

Please sign in to comment.