OH_Input_GetTouchEventDisplayX

Function OH_Input_GetTouchEventDisplayX 

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

Obtains the X coordinate of a touch event.

§Arguments

  • touchEvent - Touch event object.

§Returns

  • X coordinate.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12