OH_Input_GetAxisEventAction

Function OH_Input_GetAxisEventAction 

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

Obtains the axis event action.

§Arguments

§Returns

  • OH_Input_GetAxisEventAction function result code. [INPUT_SUCCESS] Obtains the axis event action success.

[INPUT_PARAMETER_ERROR] The axisEvent is NULL or the action is NULL.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12