Skip to main content

OH_Input_SetKeyEventAction

Function OH_Input_SetKeyEventAction 

Source
pub unsafe extern "C" fn OH_Input_SetKeyEventAction(
    keyEvent: *mut Input_KeyEvent,
    action: i32,
)
Expand description

@brief Sets the key event type.

@param keyEvent KeyEvent object, which can be created through {@link OH_Input_CreateKeyEvent()}.
If the key event object is no longer needed, destroy it by calling {@link OH_Input_DestroyKeyEvent()}. @param action Key event type. For details, see {@link Input_KeyEventAction}. @syscap SystemCapability.MultimodalInput.Input.Core @since 12