Available Methods
- getAction ( )
- ACTION_UP
- ACTION_DOWN
- getX ( )
- getY ( )
- ACTION_MOVE
- ACTION_CANCEL
- getActionMasked ( )
- getRawY ( )
- obtain ( )
- ACTION_POINTER_UP
- getRawX ( )
- getPointerCount ( )
- ACTION_MASK
- getPointerId ( )
- ACTION_POINTER_DOWN
- recycle ( )
- findPointerIndex ( )
- getActionIndex ( )
- setAction ( )
- getEventTime ( )
- ACTION_OUTSIDE
- ACTION_POINTER_INDEX_MASK
- offsetLocation ( )
- ACTION_POINTER_INDEX_SHIFT
- getHistorySize ( )
- ACTION_HOVER_EXIT
- ACTION_HOVER_MOVE
- getDownTime ( )
- getHistoricalX ( )
- getHistoricalY ( )
- ACTION_HOVER_ENTER
- ACTION_SCROLL
- getAxisValue ( )
- setLocation ( )
- getSource ( )
- getEdgeFlags ( )
- ACTION_POINTER_ID_SHIFT
- INVALID_POINTER_ID
- PointerCoords ( )
- TOOL_TYPE_FINGER
- setSource ( )
- ACTION_POINTER_ID_MASK
- PointerProperties ( )
- getMetaState ( )
- obtainNoHistory ( )
- getPressure ( )
- getDevice ( )
- ACTION_POINTER_2_DOWN ( )
- ACTION_POINTER_2_UP ( )
- TOOL_TYPE_MOUSE
- getFlags ( )
- getHistoricalEventTime ( )
- BUTTON_TERTIARY
- isFromSource ( )
- getToolType ( )
- ACTION_POINTER_1_UP ( )
- transform ( )
- AXIS_Z
- getButtonState ( )
- ACTION_POINTER_1_DOWN ( )
- BUTTON_SECONDARY
- getDeviceId ( )
- getXPrecision ( )
- AXIS_RY
- getHistoricalAxisValue ( )
- AXIS_BRAKE
- TOOL_TYPE_STYLUS
Related Classes
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.util.AttributeSet
- android.widget.ImageView
- android.graphics.Color
- android.os.Handler
- android.graphics.Canvas
- android.widget.Button
- android.text.TextUtils
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.support.annotation.Nullable
- android.widget.EditText
- android.support.annotation.NonNull
- android.graphics.Rect
- android.annotation.SuppressLint
Java Code Examples for android.view.MotionEvent#AXIS_BRAKE
The following examples show how to use
android.view.MotionEvent#AXIS_BRAKE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GamepadMappings.java From 365browser with Apache License 2.0 | 5 votes |
UnknownGamepadMappings(int[] axes) { int hatAxesFound = 0; for (int axis : axes) { switch (axis) { case MotionEvent.AXIS_LTRIGGER: case MotionEvent.AXIS_BRAKE: mLeftTriggerAxis = axis; break; case MotionEvent.AXIS_RTRIGGER: case MotionEvent.AXIS_GAS: case MotionEvent.AXIS_THROTTLE: mRightTriggerAxis = axis; break; case MotionEvent.AXIS_RX: case MotionEvent.AXIS_Z: mRightStickXAxis = axis; break; case MotionEvent.AXIS_RY: case MotionEvent.AXIS_RZ: mRightStickYAxis = axis; break; case MotionEvent.AXIS_HAT_X: hatAxesFound++; break; case MotionEvent.AXIS_HAT_Y: hatAxesFound++; break; default: break; } } if (hatAxesFound == 2) { mUseHatAxes = true; } }
Example 2
Source File: GamepadMappings.java From 365browser with Apache License 2.0 | 4 votes |
private static void mapPedalAxesToBottomShoulder(float[] mappedButtons, float[] rawAxes) { float lTrigger = rawAxes[MotionEvent.AXIS_BRAKE]; float rTrigger = rawAxes[MotionEvent.AXIS_GAS]; mappedButtons[CanonicalButtonIndex.LEFT_TRIGGER] = lTrigger; mappedButtons[CanonicalButtonIndex.RIGHT_TRIGGER] = rTrigger; }