OH_ArkUI_PointerEvent_GetPointerId

Function OH_ArkUI_PointerEvent_GetPointerId 

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

Obtains the unique ID of a contact point from a pointer event (such as a touch, mouse, or axis event).

The ID distinguishes between multiple contact points from the same input device. The return value itself does not have any other meaning beyond identifying the contact point.

§Arguments

  • event - Pointer to the current UI input event.

  • pointerIndex - Index of the target contact point in the contact point list.

§Returns

  • Unique ID of the specified contact point.

Available since API-level: 12