pub unsafe extern "C" fn OH_Input_GetDevice(
deviceId: i32,
deviceInfo: *mut *mut Input_DeviceInfo,
) -> Input_ResultAvailable on crate feature
api-13 only.Expand description
Obtains the information about an input device.
§Arguments
-
deviceId- Device ID. -
deviceInfo- Pointer to anInput_DeviceInfoobject.
§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 theOH_Input_GetDeviceIdsinterface to query the device IDs supported by the system.
Required System Capabilities: SystemCapability.MultimodalInput.Input.Core
Available since API-level: 13