mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-09-10 18:46:30 -06:00
Fix: Use natural xFactor
This commit is contained in:
parent
ff1db31271
commit
281bb92b2d
1 changed files with 4 additions and 4 deletions
|
|
@ -83,19 +83,19 @@ public class GyroControl implements SensorEventListener, GrabListener{
|
|||
public void onOrientationChanged(int i) {
|
||||
if((315 < i && i <= 360) || (i < 45) ) {
|
||||
mSwapXY = true;
|
||||
xFactor = -1;
|
||||
xFactor = 1;
|
||||
yFactor = -1;
|
||||
}else if(45 < i && i < 135) {
|
||||
mSwapXY = false;
|
||||
xFactor = -1;
|
||||
xFactor = 1;
|
||||
yFactor = -1;
|
||||
}else if(135 < i && i < 225) {
|
||||
mSwapXY = true;
|
||||
xFactor = 1;
|
||||
xFactor = -1;
|
||||
yFactor = 1;
|
||||
}else if(225 < i && i < 315) {
|
||||
mSwapXY = false;
|
||||
xFactor = 1;
|
||||
xFactor = -1;
|
||||
yFactor = 1;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue