Searched defs:historyPos (Results 1 - 2 of 2) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/view/
H A DGameView.java244 private void processJoystickInput(MotionEvent event, int historyPos) { argument
249 float x = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_X, historyPos);
251 x = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_HAT_X, historyPos);
254 x = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_Z, historyPos);
257 float y = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_Y, historyPos);
259 y = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_HAT_Y, historyPos);
262 y = getCenteredAxis(event, mLastInputDevice, MotionEvent.AXIS_RZ, historyPos);
267 step(historyPos < 0 ? event.getEventTime() : event.getHistoricalEventTime(historyPos));
271 int axis, int historyPos) {
270 getCenteredAxis(MotionEvent event, InputDevice device, int axis, int historyPos) argument
[all...]
/development/samples/ControllerSample/src/com/example/controllersample/
H A DGameView.java466 int axis, int historyPos) {
470 final float value = historyPos < 0 ? event.getAxisValue(axis)
471 : event.getHistoricalAxisValue(axis, historyPos);
817 * @param historyPos
819 private void processJoystickInput(MotionEvent event, int historyPos) { argument
830 float x = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_X, historyPos);
832 x = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_HAT_X, historyPos);
835 x = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_Z, historyPos);
838 float y = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_Y, historyPos);
840 y = getCenteredAxis(event, mInputDevice, MotionEvent.AXIS_HAT_Y, historyPos);
465 getCenteredAxis(MotionEvent event, InputDevice device, int axis, int historyPos) argument
[all...]

Completed in 20 milliseconds