arkui_sys::ui_input_event

Function OH_ArkUI_MouseEvent_GetMouseAction

Source
pub unsafe extern "C" fn OH_ArkUI_MouseEvent_GetMouseAction(
    event: *const ArkUI_UIInputEvent,
) -> i32
Available on crate feature api-12 only.
Expand description

Get the value of the mouse action type for mouse events.

§Arguments

event - Represents a pointer to the current UI input event.

§Returns

Returns the type of mouse action, where 1 represents button pressed, 2 represents button released, and 3 represents mouse movement.

Available since API-level: 12