OH_Input_GetKeyPressed

Function OH_Input_GetKeyPressed 

Source
pub unsafe extern "C" fn OH_Input_GetKeyPressed(
    keyState: *const Input_KeyState,
) -> i32
Available on crate feature api-12 only.
Expand description

Checks whether the key specific to a key status enumeration object is pressed.

§Arguments

  • keyState - Key status enumeration object.

§Returns

  • Key pressing status of the key status enumeration object.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12