OH_Input_SetKeyPressed

Function OH_Input_SetKeyPressed 

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

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

ยงArguments

  • keyState - Key status enumeration object.

  • keyAction - Whether the key is pressed.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12