OH_Input_GetPreKeys

Function OH_Input_GetPreKeys 

Source
pub unsafe extern "C" fn OH_Input_GetPreKeys(
    hotkey: *const Input_Hotkey,
    preKeys: *mut *mut i32,
    preKeyCount: *mut i32,
) -> Input_Result
Available on crate feature api-14 only.
Expand description

Obtains a modifier key.

§Arguments

  • hotkey - Hotkey key object.

  • preKeys - List of modifier keys.

  • preKeyCount - Number of modifier keys.

§Returns

  • OH_Input_GetPreKeys status code, specifically, [INPUT_SUCCESS] if the operation is successful;

[INPUT_PARAMETER_ERROR] The hotkey is NULL or the pressedKeys is NULL or the pressedKeyCount is NULL;

[INPUT_DEVICE_NOT_SUPPORTED] Capability not supported.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 14