OH_Input_SetKeyEventKeyCode

Function OH_Input_SetKeyEventKeyCode 

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

Sets the key value for a key event.

ยงArguments

  • keyEvent - Key event object.

  • keyCode - keyCode Key code.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12