OH_Input_GetFinalKey

Function OH_Input_GetFinalKey 

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

Obtains a modified key.

§Arguments

  • hotkey - Hotkey key object.

  • finalKeyCode - Returns the key value of the decorated key.

§Returns

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

[INPUT_PARAMETER_ERROR] The hotkey is NULL or the finalKeyCode is NULL;

[INPUT_DEVICE_NOT_SUPPORTED] Capability not supported.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 14