pub unsafe extern "C" fn OH_Input_GetPointerLocation(
displayId: *mut i32,
displayX: *mut f64,
displayY: *mut f64,
) -> Input_ResultAvailable on crate feature
api-20 only.Expand description
Get pointer location.
§Arguments
-
displayId- The displayId for the pointer location. -
displayX- The displayX for the pointer location. -
displayY- The displayY for the pointer location.
§Returns
- OH_Input_GetPointerLocation function api result code
[
INPUT_SUCCESS] if the operation is successful; [INPUT_PARAMETER_ERROR] if parameter is a null pointer; [INPUT_APP_NOT_FOCUSED] if the app is not the focused app; [INPUT_DEVICE_NO_POINTER] if the device has no pointer; [INPUT_SERVICE_EXCEPTION] if the service is exception.
Available since API-level: 20