MotionEventButtonState Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies pressed buttons in a motion event.
public enum MotionEventButtonState
type MotionEventButtonState =
- Inheritance
-
MotionEventButtonState
Fields
| Name | Value | Description |
|---|---|---|
| Primary | 1 | Button constant: Primary button (left mouse button). This button constant is not set in response to simple touches with a finger or stylus tip. |
| Secondary | 2 | Button constant: Secondary button (right mouse button, stylus first button). |
| Tertiary | 4 | Button constant: Tertiary button (middle mouse button, stylus second button). |
| Back | 8 | Button constant: Back button pressed (mouse back button). |
| Forward | 16 | Button constant: Forward button pressed (mouse forward button). |
| StylusPrimary | 32 | Indicates the stylus primary motion-event button state. |
| StylusSecondary | 64 | Indicates the stylus secondary motion-event button state. |
Remarks
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.