pub unsafe extern "C" fn OH_ArkUI_PointerEvent_GetPressure(
event: *const ArkUI_UIInputEvent,
pointerIndex: u32,
) -> f32Available on crate feature
api-12 only.Expand description
Obtains the pressure applied to the touchscreen from a directional input event (for example, a touch event).
§Arguments
-
event- Indicates the pointer to the current UI input event. -
pointerIndex- Indicates the index of the target touch point in the multi-touch data list.
§Returns
- Returns the pressure applied to the touchscreen; returns 0.0f if any parameter error occurs.
Available since API-level: 12