Searched refs:gx (Results 1 – 1 of 1) sorted by relevance
113 private void onAccelerometerChanged(float gx, float gy, float gz) { in onAccelerometerChanged() argument115 float x = gx, y = gy, z = gz; in onAccelerometerChanged()118 case Surface.ROTATION_90: x = -gy; y= gx; break; in onAccelerometerChanged()119 case Surface.ROTATION_180: x = -gx; y = -gy; break; in onAccelerometerChanged()120 case Surface.ROTATION_270: x = gy; y = -gx; break; in onAccelerometerChanged()144 private void onGyroscopeChanged(float gx, float gy, float gz) { in onGyroscopeChanged() argument146 float distance = (gx > 0 ? gx : -gx) + (gy > 0 ? gy : - gy); in onGyroscopeChanged()165 float x = -gy, y = -gx; in onGyroscopeChanged()167 case Surface.ROTATION_90: x = -gx; y= gy; break; in onGyroscopeChanged()168 case Surface.ROTATION_180: x = gy; y = gx; break; in onGyroscopeChanged()[all …]