OH_Input_CreateKeyEvent

Function OH_Input_CreateKeyEvent 

Source
pub unsafe extern "C" fn OH_Input_CreateKeyEvent() -> *mut Input_KeyEvent
Available on crate feature api-12 only.
Expand description

Creates a key event object.

ยงReturns

  • Returns an Input_KeyEvent pointer object if the operation is successful. Otherwise, a null pointer is returned. The possible cause is memory allocation failure.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12