OH_Input_GetKeyEventId

Function OH_Input_GetKeyEventId 

Source
pub unsafe extern "C" fn OH_Input_GetKeyEventId(
    keyEvent: *const Input_KeyEvent,
    eventId: *mut i32,
) -> Input_Result
Available on crate feature api-21 only.
Expand description

Get the eventId of the keyEvent.

§Arguments

  • keyEvent - - Key event object.

  • eventId - - Get the keyEvent eventId.

§Returns

  • OH_Input_GetKeyEventId function result code. [INPUT_SUCCESS] Get the eventId of the keyEvent success.

[INPUT_PARAMETER_ERROR] Parameter check failed.

Available since API-level: 21