Skip to main content

OH_ArkUI_CoastingAxisEvent_GetDeltaX

Function OH_ArkUI_CoastingAxisEvent_GetDeltaX 

Source
pub unsafe extern "C" fn OH_ArkUI_CoastingAxisEvent_GetDeltaX(
    event: *mut ArkUI_CoastingAxisEvent,
) -> f32
Available on crate features api-12 and api-22 only.
Expand description

Obtains the horizontal delta value.

§Arguments

  • event - Indicates the pointer to the coasting axis event.

§Returns

  • Returns delta X value, count in PX; returns 0 if any parameter error occurs.

Available since API-level: 22