Skip to main content

OH_Input_SetMouseEventAction

Function OH_Input_SetMouseEventAction 

Source
pub unsafe extern "C" fn OH_Input_SetMouseEventAction(
    mouseEvent: *mut Input_MouseEvent,
    action: i32,
)
Expand description

@brief Sets the action for 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()}. @param action Mouse action. For details, see {@link Input_MouseEventAction}. @syscap SystemCapability.MultimodalInput.Input.Core @since 12