OH_Input_GetMouseEventDisplayX

Function OH_Input_GetMouseEventDisplayX 

Source
pub unsafe extern "C" fn OH_Input_GetMouseEventDisplayX(
    mouseEvent: *const Input_MouseEvent,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtains the X coordinate of a mouse event.

§Arguments

  • mouseEvent - Mouse event object.

§Returns

  • X coordinate on the display.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12