Skip to main content

OH_Input_GetMouseEventDisplayY

Function OH_Input_GetMouseEventDisplayY 

Source
pub unsafe extern "C" fn OH_Input_GetMouseEventDisplayY(
    mouseEvent: *const Input_MouseEvent,
) -> i32
Expand description

@brief Obtains the Y coordinate of the mouse event in the relative coordinate system with the upper-left corner of the specified screen as the origin.

@param mouseEvent Mouse event object. You can call {@link OH_Input_CreateMouseEvent()} to create a mouse event object.
If the mouse event object is no longer needed, destroy it by calling {@link OH_Input_DestroyMouseEvent()}. @return Y-coordinate of the mouse event in the relative coordinate system with the upper left corner of the specified screen as the origin, in pixels (px). Returns -1 if mouseEvent is NULL. @syscap SystemCapability.MultimodalInput.Input.Core @since 12