OH_Input_GetAxisEventActionTime

Function OH_Input_GetAxisEventActionTime 

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

Obtains the time when an axis event occurs.

§Arguments

  • axisEvent - Axis event object. For details, see Input_AxisEvent.

  • actionTime - Time when an axis event occurs.

§Returns

  • OH_Input_GetAxisEventActionTime function result code. [INPUT_SUCCESS] Obtains the time when an axis event occurs success.

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

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12