OH_Input_SetAxisEventGlobalY

Function OH_Input_SetAxisEventGlobalY 

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

Set the global Y coordinate of the axis event.

§Arguments

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

  • globalY - Global Y coordinate.

§Returns

  • OH_Input_SetAxisEventGlobalY function result code. [INPUT_SUCCESS] Success.

[INPUT_PARAMETER_ERROR] The axisEvent is NULL.

Available since API-level: 20