OH_Input_GetAxisEventDisplayX

Function OH_Input_GetAxisEventDisplayX 

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

Obtains the X coordinate of an axis event.

§Arguments

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

  • displayX - X coordinate of the axis event.

§Returns

  • OH_Input_GetAxisEventDisplayX function result code. [INPUT_SUCCESS] Obtains the X coordinate of the axis event success.

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

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12