Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java56 private InputDevice mLastInputDevice; field in GameView
217 if (mLastInputDevice == null || mLastInputDevice.getId() != event.getDeviceId()) { in onGenericMotionEvent()
218 mLastInputDevice = event.getDevice(); in onGenericMotionEvent()
221 if (mLastInputDevice == null) { in onGenericMotionEvent()
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()
[all …]