pub unsafe extern "C" fn OH_Input_GetFunctionKeyState(
keyCode: i32,
state: *mut i32,
) -> Input_ResultAvailable on crate feature
api-15 only.Expand description
Obtains the function key status.
§Arguments
-
keyCode- Function key value. Supported function keys include capsLock, NumLock, and ScrollLock. -
state- Function key status. The value 0 indicates that the function key is disabled, and the value 1 indicates the opposite.
§Returns
- OH_Input_GetFunctionKeyState function api result code
[
INPUT_SUCCESS] if the operation is successful; [INPUT_PARAMETER_ERROR] if keyCode is invalid or state is a null pointer. [INPUT_KEYBOARD_DEVICE_NOT_EXIST] no keyboard device connected.
Required System Capabilities: SystemCapability.MultimodalInput.Input.Core
Available since API-level: 15