同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Related Modules:
Description:
Provides interfaces for managing input devices.
The interfaces can be used to perform basic operations on the input devices, such as opening and closing the device files and querying information about the input device.
OpenInputDevice )(uint32_t devIndex) |
|
CloseInputDevice )(uint32_t devIndex) |
|
GetInputDevice )(uint32_t devIndex, DeviceInfo **devInfo) |
|
GetInputDeviceList )(uint32_t *devNum, DeviceInfo **devList, uint32_t size) |
Gets information about all input devices in the device list. |
int32_t(* InputManager::CloseInputDevice) (uint32_t devIndex)
Description:
Closes a specified input device file.
Parameters:
devIndex | Indicates the index of an input device. A maximum of 32 input devices are supported. The value ranges from 0 to 31, and value 0 represents the first input device. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in RetStatus otherwise.
int32_t(* InputManager::GetInputDevice) (uint32_t devIndex, [DeviceInfo](DeviceInfo.md) **devInfo)
Description:
Gets information about a specified input device.
Parameters:
devIndex | Indicates the index of an input device. A maximum of 32 input devices are supported. The value ranges from 0 to 31, and value 0 represents the first input device. |
devInfo | Indicates the double pointer to information about the specified device. For details, see DeviceInfo. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in RetStatus otherwise.
int32_t(* InputManager::GetInputDeviceList) (uint32_t *devNum, [DeviceInfo](DeviceInfo.md) **devList, uint32_t size)
Description:
Gets information about all input devices in the device list.
Parameters:
devNum | Indicates the pointer to the total number of input devices which have been registered. |
devList | Indicates the double pointer to information about all devices in the device list. For details, see DeviceInfo. |
size | Indicates the number of elements in the devList array. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in RetStatus otherwise.
int32_t(* InputManager::OpenInputDevice) (uint32_t devIndex)
Description:
Opens a specified input device file.
Parameters:
devIndex | Indicates the index of an input device. A maximum of 32 input devices are supported. The value ranges from 0 to 31, and value 0 represents the first input device. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in RetStatus otherwise.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。