Skip to main content

OH_Input_GetMouseEventCursorInfo

Function OH_Input_GetMouseEventCursorInfo 

Source
pub unsafe extern "C" fn OH_Input_GetMouseEventCursorInfo(
    mouseEvent: *const Input_MouseEvent,
    cursorInfo: *mut Input_CursorInfo,
) -> Input_Result
Available on crate feature api-22 only.
Expand description

Get cursor info of the mouseEvent.

§Arguments

  • mouseEvent - The received mouseEvent.

  • cursorInfo - The object to receive the cursor info.

§Returns

  • OH_Input_GetMouseEventCursorInfo function api result code [INPUT_SUCCESS] if the operation is successful; [INPUT_PARAMETER_ERROR] if parameter is a null cursor;

Available since API-level: 22