Home
last modified time | relevance | path

Searched refs:AxesMapping (Results 1 – 2 of 2) sorted by relevance

/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/
DControllerView.java34 import com.example.android.visualgamecontroller.FullscreenActivity.AxesMapping;
350 if (mAxes[AxesMapping.AXIS_BRAKE.ordinal()] > 0.0f) { in onDraw()
351 mGradientPaint.setAlpha((int) (mAxes[AxesMapping.AXIS_BRAKE.ordinal()] * 100) + 155); in onDraw()
355 if (mAxes[AxesMapping.AXIS_GAS.ordinal()] > 0.0f) { in onDraw()
356 mGradientPaint.setAlpha((int) (mAxes[AxesMapping.AXIS_GAS.ordinal()] * 100) + 155); in onDraw()
387 if (mAxes[AxesMapping.AXIS_X.ordinal()] != 0.0f) { in onDraw()
389 * mAxes[AxesMapping.AXIS_X.ordinal()]; in onDraw()
391 if (mAxes[AxesMapping.AXIS_Y.ordinal()] != 0.0f) { in onDraw()
393 * getHeight() * mAxes[AxesMapping.AXIS_Y.ordinal()]; in onDraw()
396 if (mAxes[AxesMapping.AXIS_Z.ordinal()] != 0.0f) { in onDraw()
[all …]
DFullscreenActivity.java104 public enum AxesMapping { enum in FullscreenActivity
118 AxesMapping(int motionEvent) { in AxesMapping() method in FullscreenActivity.AxesMapping
128 private float[] mAxes = new float[AxesMapping.values().length];
302 for (AxesMapping axesMapping : AxesMapping.values()) { in onGenericMotionEvent()