OH_ArkUI_UIInputEvent_GetModifierKeyStates

Function OH_ArkUI_UIInputEvent_GetModifierKeyStates 

Source
pub unsafe extern "C" fn OH_ArkUI_UIInputEvent_GetModifierKeyStates(
    event: *const ArkUI_UIInputEvent,
    keys: *mut u64,
) -> i32
Available on crate features api-12 and api-17 only.
Expand description

Obtains the state of the modifier keys in a UI input event.

§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

  • 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