OH_Input_GetDevice

Function OH_Input_GetDevice 

Source
pub unsafe extern "C" fn OH_Input_GetDevice(
    deviceId: i32,
    deviceInfo: *mut *mut Input_DeviceInfo,
) -> Input_Result
Available on crate feature api-13 only.
Expand description

Obtains the information about an input device.

§Arguments

§Returns

  • OH_Input_GetDevice result code, specifically, [INPUT_SUCCESS] if the operation is successful; [INPUT_PARAMETER_ERROR] if the deviceInfo is a null pointer or the deviceId is invalid. You can use the OH_Input_GetDeviceIds interface to query the device IDs supported by the system.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 13