OH_Input_GetKeyEventAction

Function OH_Input_GetKeyEventAction 

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

Obtains the key event type.

§Arguments

  • keyEvent - Key event object.

§Returns

  • Key event type.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12