pub unsafe extern "C" fn OH_ArkUI_PointerEvent_GetRollAngle(
event: *const ArkUI_UIInputEvent,
rollAngle: *mut f64,
) -> i32Available on crate features
api-12 and api-17 only.Expand description
Obtains the rotation angle of the stylus around the z-axis from a UI input event.
§Arguments
-
event- Pointer to the UI input event. -
rollAngle- Rotation angle of the stylus around the z-axis.
§Returns
- Returns the result code.
Returns [
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
Available since API-level: 17