Skip to main content

OH_Input_GetMouseEventButton

Function OH_Input_GetMouseEventButton 

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

@brief Obtains the button of a mouse event.

@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 Mouse button. Returns -1 if mouseEvent is NULL. For details, see {@link Input_MouseEventButton}. @syscap SystemCapability.MultimodalInput.Input.Core @since 12