OH_Input_SetAxisEventWindowId

Function OH_Input_SetAxisEventWindowId 

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

Sets the windowId of an axis event.

§Arguments

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

  • windowId - The windowId for the axis event.

§Returns

  • OH_Input_SetAxisEventWindowId function result code. [INPUT_SUCCESS] Sets the Y coordinate of the axis event success.

[INPUT_PARAMETER_ERROR] The axisEvent is NULL.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 15