OH_Input_GetAxisEventAxisValue

Function OH_Input_GetAxisEventAxisValue 

Source
pub unsafe extern "C" fn OH_Input_GetAxisEventAxisValue(
    axisEvent: *const Input_AxisEvent,
    axisType: InputEvent_AxisType,
    axisValue: *mut f64,
) -> Input_Result
Available on crate feature api-12 only.
Expand description

Obtains the axis value for the specified axis type of the axis event.

§Arguments

§Returns

  • OH_Input_GetAxisEventAxisValue function result code. [INPUT_SUCCESS] Obtains the axis value of the axis event success.

[INPUT_PARAMETER_ERROR] The axisEvent is NULL or the axisValue is NULL, or the axisType not found in the axisEvent.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12