手感优化
This commit is contained in:
parent
d7fac0d53a
commit
3d12de99dd
@ -123,16 +123,9 @@ window.vm = {
|
|||||||
onCtrlDire: function(t, e) {
|
onCtrlDire: function(t, e) {
|
||||||
this.onCtrlDire;
|
this.onCtrlDire;
|
||||||
var i ;//= Math.round((t + 180) / 45) % 8;
|
var i ;//= Math.round((t + 180) / 45) % 8;
|
||||||
if(t>=40&&t<=50){
|
var abst = Math.abs(t);
|
||||||
i=5
|
if((abst>=40&&abst<=50)||(abst>=130&&abst<=140)){
|
||||||
}else if(t>=-50&&t<=-40){
|
i = Math.round((t + 180) / 45) % 8;
|
||||||
i=3
|
|
||||||
}
|
|
||||||
else if(t>=-140&&t<=-130){
|
|
||||||
i=1
|
|
||||||
}
|
|
||||||
else if(t>=130&&t<=140){
|
|
||||||
i=7
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
i = Math.round((t + 180) / 90) % 4*2;
|
i = Math.round((t + 180) / 90) % 4*2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user