nothing much but ok

beta.r3js.org
-=yb4f310 2017-09-29 07:18:22 +02:00
parent 47479ffea2
commit 3515b406d5
1 changed files with 4 additions and 4 deletions

View File

@ -264,22 +264,22 @@ GameLib.System.Input.prototype.onTouchMove = function(touchControl) {
if (event.changedTouches[t].pageX > this.touches[id].pageX) {
right = 1;
left -= 1;
left = -1;
}
if (event.changedTouches[t].pageX < this.touches[id].pageX) {
left = 1;
right -= 1;
right = -1;
}
if (event.changedTouches[t].pageY < this.touches[id].pageY) {
up = 1;
down -= 1;
down = -1;
}
if (event.changedTouches[t].pageY > this.touches[id].pageY) {
down = 1;
up -= 1;
up = -1;
}
this.touches[id].right += right;