OH_ArkUI_FocusAxisEvent_GetAxisValue

Function OH_ArkUI_FocusAxisEvent_GetAxisValue 

Source
pub unsafe extern "C" fn OH_ArkUI_FocusAxisEvent_GetAxisValue(
    event: *const ArkUI_UIInputEvent,
    axis: i32,
) -> f64
Available on crate features api-12 and api-15 only.
Expand description

Obtains the axis value of a focus axis event.

§Arguments

  • event - Pointer to an ArkUI_UIInputEvent object.

  • axis - Axis type of the focus axis event.

§Returns

  • Returns the axis value of the focus axis event; returns 0.0 if any parameter error occurs.

Available since API-level: 15