OH_Input_SetAxisEventGlobalX

Function OH_Input_SetAxisEventGlobalX 

Source
pub unsafe extern "C" fn OH_Input_SetAxisEventGlobalX(
    axisEvent: *mut Input_AxisEvent,
    globalX: i32,
) -> Input_Result
Available on crate feature api-20 only.
Expand description

Set the global X coordinate of the axis event.

§Arguments

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

  • globalX - Global X coordinate.

§Returns

  • OH_Input_SetAxisEventGlobalX function result code. [INPUT_SUCCESS] Success.

[INPUT_PARAMETER_ERROR] The axisEvent is NULL.

Available since API-level: 20