arkui_sys::ui_input_event

Function OH_ArkUI_PointerEvent_GetPointerCount

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

Obtains the number of touch points from a directional input event (such as a touch event, mouse event, or axis event).

§Arguments

event - Indicates the pointer to the current UI input event.

§Returns

Returns the number of touch points for the directional input event.

Available since API-level: 12