/** * @param ev * @return * @see android.app.Activity#dispatchGenericMotionEvent(android.view.MotionEvent) */ public boolean dispatchGenericMotionEvent(MotionEvent ev) { return mActivity.dispatchGenericMotionEvent(ev); }
@Override public boolean dispatchGenericMotionEvent(android.view.MotionEvent motionevent0) { return mOriginActivity.dispatchGenericMotionEvent(motionevent0); }
@Override public boolean dispatchGenericMotionEvent(MotionEvent event) { if (application.dispatchGenericMotionEvent(event)) { return true; } return super.dispatchGenericMotionEvent(event); }
@Override public boolean dispatchGenericMotionEvent(MotionEvent event) { // Check that the event came from a joystick since a generic motion event could be almost anything. if ((event.getSource() & InputDevice.SOURCE_CLASS_JOYSTICK) != 0 && event.getAction() == MotionEvent.ACTION_MOVE && mController instanceof GamepadController) { mGamepadController.dealWithMotionEvent(event); updateFlightData(); return true; } else { return super.dispatchGenericMotionEvent(event); } }
@Override public boolean dispatchGenericMotionEvent(MotionEvent event) { // Check that the event came from a joystick since a generic motion event // could be almost anything. if (event.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK) && event.getAction() == MotionEvent.ACTION_MOVE) { // Update device state for visualization and logging. InputDeviceState state = getInputDeviceState(event.getDeviceId()); if (state != null && state.onJoystickMotion(event)) { mSummaryAdapter.show(state); } } return super.dispatchGenericMotionEvent(event); }
@Override public boolean dispatchGenericMotionEvent(MotionEvent event) { // Check that the event came from a joystick since a generic motion event // could be almost anything. if (event.isFromSource(InputDevice.SOURCE_CLASS_JOYSTICK) && event.getAction() == MotionEvent.ACTION_MOVE) { // Update device state for visualization and logging. InputDeviceState state = getInputDeviceState(event.getDeviceId()); if (state != null && state.onJoystickMotion(event)) { mSummaryAdapter.show(state); } } return super.dispatchGenericMotionEvent(event); }