OH_Input_SetAxisEventAxisValue

Function OH_Input_SetAxisEventAxisValue 

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

Sets the axis value of the axis type specified by the axis event.

§Arguments

§Returns

  • OH_Input_SetAxisEventAxisValue function result code. [INPUT_SUCCESS] Sets the axis value of the axis event success.

[INPUT_PARAMETER_ERROR] The axisEvent is NULL.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12