Android Guides | Samples

Android.Views.MotionEventButtonState Enumeration

Enumerates values returned by several types and taken as a parameter of the MotionEvent.IsButtonPressed, and MotionEvent.Obtain members.

Syntax

public enum MotionEventButtonState

Remarks

Members

Member NameDescription
Back

Button constant: Back button pressed (mouse back button).

The system may send a Keycode.Back key press to the application when this button is pressed.

Forward

Button constant: Forward button pressed (mouse forward button).

The system may send a Keycode.Forward key press to the application when this button is pressed.

PrimaryButton constant: Primary button (left mouse button). This button constant is not set in response to simple touches with a finger or stylus tip. The user must actually push a button.
SecondaryButton constant: Secondary button (right mouse button, stylus first button).
TertiaryButton constant: Tertiary button (middle mouse button, stylus second button).

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Views.MotionEventButtonState are listed below.

See Also: Enum

Public Fields

BackMotionEventButtonState.

Button constant: Back button pressed (mouse back button).

The system may send a Keycode.Back key press to the application when this button is pressed.

ForwardMotionEventButtonState.

Button constant: Forward button pressed (mouse forward button).

The system may send a Keycode.Forward key press to the application when this button is pressed.

PrimaryMotionEventButtonState. Button constant: Primary button (left mouse button). This button constant is not set in response to simple touches with a finger or stylus tip. The user must actually push a button.
SecondaryMotionEventButtonState. Button constant: Secondary button (right mouse button, stylus first button).
TertiaryMotionEventButtonState. Button constant: Tertiary button (middle mouse button, stylus second button).