OH_Input_SetAxisEventAction

Function OH_Input_SetAxisEventAction 

Source
pub unsafe extern "C" fn OH_Input_SetAxisEventAction(
    axisEvent: *mut Input_AxisEvent,
    action: InputEvent_AxisAction,
) -> Input_Result
Available on crate feature api-12 only.
Expand description

Sets the axis event action.

§Arguments

§Returns

  • OH_Input_SetAxisEventAction function result code. [INPUT_SUCCESS] Sets the axis event action success.

[INPUT_PARAMETER_ERROR] The axisEvent is NULL.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12