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