Home
last modified time | relevance | path

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

/developers/build/prebuilts/androidtv/visual-game-controller/src/com/example/android/visualgamecontroller/
DControllerView.java66 private float[] mAxes; field in ControllerView
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.java128 private float[] mAxes = new float[AxesMapping.values().length]; field in FullscreenActivity
146 for (int i = 0; i < mAxes.length; i++) { in onCreate()
147 mAxes[i] = 0.0f; in onCreate()
149 mControllerView.setButtonsAxes(mButtons, mAxes); in onCreate()
303 mAxes[axesMapping.ordinal()] = getCenteredAxis(ev, device, in onGenericMotionEvent()