pub unsafe extern "C" fn OH_ArkUI_UIInputEvent_GetModifierKeyStates(
event: *const ArkUI_UIInputEvent,
keys: *mut u64,
) -> i32Available on crate features
api-12 and api-17 only.Expand description
Obtains the modifier key states for a UI input event.
This API outputs the state of all modifier keys at the time of the event through the keys parameter.
You can determine which keys are pressed by performing bitwise operations with the modifier key types defined
in ArkUI_ModifierKeyName.
§Arguments
-
event- Pointer to an ArkUI_UIInputEvent object. -
keys- Pointer to a variable where the current combination of pressed modifier keys will be returned. The application can use bitwise operations to determine the state of each modifier key.
§Returns
- Result code.
[
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
Available since API-level: 17