InputManager
Overview
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.
Summary
Data Fields
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. |
Details
Field Documentation
CloseInputDevice
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.
GetInputDevice
int32_t(* InputManager::GetInputDevice) (uint32_t devIndex, [DeviceInfo]($api-api-SmartVision-Devices-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.
GetInputDeviceList
int32_t(* InputManager::GetInputDeviceList) (uint32_t *devNum, [DeviceInfo]($api-api-SmartVision-Devices-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.
OpenInputDevice
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.