Update: CC - Touch Move (c55930et90.js) 1 bytes modified
parent
fa9b44dc7f
commit
f15d88b821
|
@ -7,11 +7,11 @@ if (!this.initialized) {
|
|||
this.x = window.innerWidth / 2;
|
||||
this.y = window.innerHeight / 2;
|
||||
|
||||
var sensitivity = 0.1;
|
||||
|
||||
this.initialized = true;
|
||||
}
|
||||
|
||||
var sensitivity = 0.1;
|
||||
|
||||
this.x -= Math.round(touch.left * sensitivity);
|
||||
this.x += Math.round(touch.right * sensitivity);
|
||||
this.y -= Math.round(touch.up * sensitivity);
|
||||
|
|
Loading…
Reference in New Issue