Lines Matching defs:axis

32  * Motion events describe movements in terms of an action code and a set of axis values.
34 * down or up. The axis values describe the position and other movement properties.
38 * and a set of axis values that include the X and Y coordinates of the touch and
142 * The joystick axis values are normalized to a range of -1.0 to 1.0 where 0.0 corresponds
424 * Axis constant: X axis of a motion event.
449 * Axis constant: Y axis of a motion event.
474 * Axis constant: Pressure axis of a motion event.
496 * Axis constant: Size axis of a motion event.
516 * Axis constant: TouchMajor axis of a motion event.
519 * <li>For a touch screen, reports the length of the major axis of an ellipse that
522 * <li>For a touch pad, reports the length of the major axis of an ellipse that
537 * Axis constant: TouchMinor axis of a motion event.
540 * <li>For a touch screen, reports the length of the minor axis of an ellipse that
543 * <li>For a touch pad, reports the length of the minor axis of an ellipse that
549 * When the touch is circular, the major and minor axis lengths will be equal to one another.
560 * Axis constant: ToolMajor axis of a motion event.
563 * <li>For a touch screen, reports the length of the major axis of an ellipse that
565 * <li>For a touch pad, reports the length of the major axis of an ellipse that
571 * When the touch is circular, the major and minor axis lengths will be equal to one another.
585 * Axis constant: ToolMinor axis of a motion event.
588 * <li>For a touch screen, reports the length of the minor axis of an ellipse that
590 * <li>For a touch pad, reports the length of the minor axis of an ellipse that
596 * When the touch is circular, the major and minor axis lengths will be equal to one another.
610 * Axis constant: Orientation axis of a motion event.
615 * An angle of 0 radians indicates that the major axis of contact is oriented
617 * indicates that the major axis of contact is oriented to the right. A negative angle
618 * indicates that the major axis of contact is oriented to the left.
622 * is pointing in relation to the vertical axis of the current orientation of the screen.
637 * Axis constant: Vertical Scroll axis of a motion event.
644 * This axis should be used to scroll views vertically.
655 * Axis constant: Horizontal Scroll axis of a motion event.
662 * This axis should be used to scroll views horizontally.
673 * Axis constant: Z axis of a motion event.
678 * <em>On game pads with two analog joysticks, this axis is often reinterpreted
691 * Axis constant: X Rotation axis of a motion event.
694 * <li>For a joystick, reports the absolute rotation angle about the X axis.
707 * Axis constant: Y Rotation axis of a motion event.
710 * <li>For a joystick, reports the absolute rotation angle about the Y axis.
723 * Axis constant: Z Rotation axis of a motion event.
726 * <li>For a joystick, reports the absolute rotation angle about the Z axis.
728 * <em>On game pads with two analog joysticks, this axis is often reinterpreted
741 * Axis constant: Hat X axis of a motion event.
757 * Axis constant: Hat Y axis of a motion event.
773 * Axis constant: Left Trigger axis of a motion event.
789 * Axis constant: Right Trigger axis of a motion event.
805 * Axis constant: Throttle axis of a motion event.
821 * Axis constant: Rudder axis of a motion event.
837 * Axis constant: Wheel axis of a motion event.
853 * Axis constant: Gas axis of a motion event.
870 * Axis constant: Brake axis of a motion event.
886 * Axis constant: Distance axis of a motion event.
903 * Axis constant: Tilt axis of a motion event.
921 * Axis constant: Generic 1 axis of a motion event.
922 * The interpretation of a generic axis is device-specific.
932 * Axis constant: Generic 2 axis of a motion event.
933 * The interpretation of a generic axis is device-specific.
943 * Axis constant: Generic 3 axis of a motion event.
944 * The interpretation of a generic axis is device-specific.
954 * Axis constant: Generic 4 axis of a motion event.
955 * The interpretation of a generic axis is device-specific.
965 * Axis constant: Generic 5 axis of a motion event.
966 * The interpretation of a generic axis is device-specific.
976 * Axis constant: Generic 6 axis of a motion event.
977 * The interpretation of a generic axis is device-specific.
987 * Axis constant: Generic 7 axis of a motion event.
988 * The interpretation of a generic axis is device-specific.
998 * Axis constant: Generic 8 axis of a motion event.
999 * The interpretation of a generic axis is device-specific.
1009 * Axis constant: Generic 9 axis of a motion event.
1010 * The interpretation of a generic axis is device-specific.
1020 * Axis constant: Generic 10 axis of a motion event.
1021 * The interpretation of a generic axis is device-specific.
1031 * Axis constant: Generic 11 axis of a motion event.
1032 * The interpretation of a generic axis is device-specific.
1042 * Axis constant: Generic 12 axis of a motion event.
1043 * The interpretation of a generic axis is device-specific.
1053 * Axis constant: Generic 13 axis of a motion event.
1054 * The interpretation of a generic axis is device-specific.
1064 * Axis constant: Generic 14 axis of a motion event.
1065 * The interpretation of a generic axis is device-specific.
1075 * Axis constant: Generic 15 axis of a motion event.
1076 * The interpretation of a generic axis is device-specific.
1086 * Axis constant: Generic 16 axis of a motion event.
1087 * The interpretation of a generic axis is device-specific.
1096 // NOTE: If you add a new axis here you must also add it to:
1194 // NOTE: If you add a new axis here you must also add it to:
1358 int axis, int pointerIndex, int historyPos);
1360 int axis, int pointerIndex, int historyPos);
1908 * @param axis The axis identifier for the axis value to retrieve.
1913 public final float getAxisValue(int axis) {
1914 return nativeGetAxisValue(mNativePtr, axis, 0, HISTORY_CURRENT);
2033 * Returns the length of the major axis of an ellipse that describes the touch
2047 * Returns the length of the minor axis of an ellipse that describes the touch
2061 * Returns the length of the major axis of an ellipse that describes the size of
2077 * Returns the length of the minor axis of an ellipse that describes the size of
2096 * An angle of 0 radians indicates that the major axis of contact is oriented
2098 * indicates that the major axis of contact is oriented to the right. A negative angle
2099 * indicates that the major axis of contact is oriented to the left.
2112 * Returns the value of the requested axis for the given pointer <em>index</em>
2115 * @param axis The axis identifier for the axis value to retrieve.
2118 * @return The value of the axis, or 0 if the axis is not available.
2123 public final float getAxisValue(int axis, int pointerIndex) {
2124 return nativeGetAxisValue(mNativePtr, axis, pointerIndex, HISTORY_CURRENT);
2432 * @param axis The axis identifier for the axis value to retrieve.
2441 public final float getHistoricalAxisValue(int axis, int pos) {
2442 return nativeGetAxisValue(mNativePtr, axis, 0, pos);
2518 * Returns a historical touch major axis coordinate, as per {@link #getTouchMajor(int)}, that
2536 * Returns a historical touch minor axis coordinate, as per {@link #getTouchMinor(int)}, that
2554 * Returns a historical tool major axis coordinate, as per {@link #getToolMajor(int)}, that
2572 * Returns a historical tool minor axis coordinate, as per {@link #getToolMinor(int)}, that
2608 * Returns the historical value of the requested axis, as per {@link #getAxisValue(int, int)},
2612 * @param axis The axis identifier for the axis value to retrieve.
2617 * @return The value of the axis, or 0 if the axis is not available.
2622 public final float getHistoricalAxisValue(int axis, int pointerIndex, int pos) {
2623 return nativeGetAxisValue(mNativePtr, axis, pointerIndex, pos);
3047 * Returns a string that represents the symbolic name of the specified axis
3050 * @param axis The axis.
3051 * @return The symbolic name of the specified axis.
3053 public static String axisToString(int axis) {
3054 String symbolicName = AXIS_SYMBOLIC_NAMES.get(axis);
3055 return symbolicName != null ? symbolicName : Integer.toString(axis);
3059 * Gets an axis by its symbolic name such as "AXIS_X" or an
3062 * @param symbolicName The symbolic name of the axis.
3063 * @return The axis or -1 if not found.
3237 * The length of the major axis of an ellipse that describes the touch area at
3247 * The length of the minor axis of an ellipse that describes the touch area at
3257 * The length of the major axis of an ellipse that describes the size of
3269 * The length of the minor axis of an ellipse that describes the size of
3282 * An angle of 0 radians indicates that the major axis of contact is oriented
3284 * indicates that the major axis of contact is oriented to the right. A negative angle
3285 * indicates that the major axis of contact is oriented to the left.
3342 * Gets the value associated with the specified axis.
3344 * @param axis The axis identifier for the axis value to retrieve.
3345 * @return The value associated with the axis, or 0 if none.
3350 public float getAxisValue(int axis) {
3351 switch (axis) {
3371 if (axis < 0 || axis > 63) {
3375 final long axisBit = 1L << axis;
3386 * Sets the value associated with the specified axis.
3388 * @param axis The axis identifier for the axis value to assign.
3394 public void setAxisValue(int axis, float value) {
3395 switch (axis) {
3424 if (axis < 0 || axis > 63) {
3428 final long axisBit = 1L << axis;