Share via


MotionEvent.GetAxisValue Method

Definition

Overloads

GetAxisValue(Axis)

#getAxisValue(int) for the first pointer index (may be an arbitrary pointer identifier).

GetAxisValue(Axis, Int32)

Returns the value of the requested axis for the given pointer <em>index</em> (use #getPointerId(int) to find the pointer identifier for this index).

GetAxisValue(Axis)

#getAxisValue(int) for the first pointer index (may be an arbitrary pointer identifier).

[Android.Runtime.Register("getAxisValue", "(I)F", "")]
public float GetAxisValue (Android.Views.Axis axis);
[<Android.Runtime.Register("getAxisValue", "(I)F", "")>]
member this.GetAxisValue : Android.Views.Axis -> single

Parameters

axis
Axis

The axis identifier for the axis value to retrieve.

Returns

Attributes

Remarks

#getAxisValue(int) for the first pointer index (may be an arbitrary pointer identifier).

Java documentation for android.view.MotionEvent.getAxisValue(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetAxisValue(Axis, Int32)

Returns the value of the requested axis for the given pointer <em>index</em> (use #getPointerId(int) to find the pointer identifier for this index).

[Android.Runtime.Register("getAxisValue", "(II)F", "")]
public float GetAxisValue (Android.Views.Axis axis, int pointerIndex);
[<Android.Runtime.Register("getAxisValue", "(II)F", "")>]
member this.GetAxisValue : Android.Views.Axis * int -> single

Parameters

axis
Axis

The axis identifier for the axis value to retrieve.

pointerIndex
Int32

Raw index of pointer to retrieve. Value may be from 0 (the first pointer that is down) to #getPointerCount()-1.

Returns

The value of the axis, or 0 if the axis is not available.

Attributes

Remarks

Returns the value of the requested axis for the given pointer <em>index</em> (use #getPointerId(int) to find the pointer identifier for this index).

Java documentation for android.view.MotionEvent.getAxisValue(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to