pub unsafe extern "C" fn OH_ArkUI_MouseEvent_GetMouseButton(
event: *const ArkUI_UIInputEvent,
) -> i32Available on crate feature
api-12 only.Expand description
Get the value of the button type for mouse events.
§Arguments
event - Represents a pointer to the current UI input event.
§Returns
Return to the mouse button type, where 1 is the left button, 2 is the right button, 3 is the middle button, 4 is the back button, and 5 is the forward button.
Available since API-level: 12