Searched refs:mInputDevice (Results 1 – 1 of 1) sorted by relevance
/development/samples/ControllerSample/src/com/example/controllersample/ |
D | GameView.java | 656 private InputDevice mInputDevice; field in GameView.Ship 793 null != mInputDevice) { in getVibrator() 794 return mInputDevice.getVibrator(); in getVibrator() 827 if (null == mInputDevice) { in processJoystickInput() 828 mInputDevice = event.getDevice(); in processJoystickInput() 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() [all …]
|