Home
last modified time | relevance | path

Searched refs:historyPos (Results 1 – 3 of 3) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java244 private void processJoystickInput(MotionEvent event, int historyPos) { in processJoystickInput() argument
249 float x = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_X, historyPos); in processJoystickInput()
251 x = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_HAT_X, historyPos); in processJoystickInput()
254 x = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_Z, historyPos); in processJoystickInput()
257 float y = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_Y, historyPos); in processJoystickInput()
259 y = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_HAT_Y, historyPos); in processJoystickInput()
262 y = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_RZ, historyPos); in processJoystickInput()
267 step(historyPos < 0 ? event.getEventTime() : event.getHistoricalEventTime(historyPos)); in processJoystickInput()
271 int axis, int historyPos) {
275 final float value = historyPos < 0 ? event.getAxisValue(axis)
[all …]
DGameControllerInput.java298 for (int historyPos = 0; historyPos < historySize; historyPos++) { in onJoystickMotion()
299 message.append(event.getHistoricalAxisValue(axis, historyPos)); in onJoystickMotion()
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java466 int axis, int historyPos) { in getCenteredAxis() argument
470 final float value = historyPos < 0 ? event.getAxisValue(axis) in getCenteredAxis()
471 : event.getHistoricalAxisValue(axis, historyPos); in getCenteredAxis()
819 private void processJoystickInput(MotionEvent event, int historyPos) { in processJoystickInput() argument
830 float x = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_X, historyPos); in processJoystickInput()
832 x = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_HAT_X, historyPos); in processJoystickInput()
835 x = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_Z, historyPos); in processJoystickInput()
838 float y = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_Y, historyPos); in processJoystickInput()
840 y = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_HAT_Y, historyPos); in processJoystickInput()
843 y = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_RZ, historyPos); in processJoystickInput()
[all …]