This action will force synchronization from OpenHarmony/docs, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
Provides driver interfaces for the input service.
These driver interfaces can be used to open and close input device files, get input events, query device information, register callback functions, and control the feature status.
Since:
1.0
Version:
1.0
GetInputInterface (IInputInterface **interface) |
Gets all interfaces for performing operations on input devices. |
enum [CapacitanceTest](Input.md#gae96e484cfd64ea37b5b7782f57f38a21)
Description:
Enumerates types of capacitance tests.
BASE_TEST | |
FULL_TEST | |
MMI_TEST | |
RUNNING_TEST | |
TEST_TYPE_UNKNOWN |
enum [InputDevType](Input.md#gaa8225ba155dfa1ef2c4119c832bc4dd3)
Description:
Enumerates input device types.
INDEV_TYPE_TOUCH | |
INDEV_TYPE_KEY | |
INDEV_TYPE_KEYBOARD | |
INDEV_TYPE_MOUSE | |
INDEV_TYPE_BUTTON | |
INDEV_TYPE_CROWN | |
INDEV_TYPE_ENCODER | |
INDEV_TYPE_UNKNOWN |
enum [PowerStatus](Input.md#ga65e6bb4d942c22dba9975253b0a1d73f)
Description:
Enumerates power statuses.
INPUT_RESUME | |
INPUT_SUSPEND | |
INPUT_LOW_POWER | |
INPUT_POWER_STATUS_UNKNOWN |
enum [RetStatus](Input.md#ga85d58a5185669daa4995e332b63eba7a)
Description:
Enumerates return values.
INPUT_SUCCESS | |
INPUT_EINVAL | |
INPUT_EFAULT | |
INPUT_ENOMEM | |
INPUT_ETIMEOUT | |
INPUT_EUNSUPPORT | |
INPUT_EUNKNOWN |
int GetInputInterface ([IInputInterface](IInputInterface.md) ** interface)
Description:
Gets all interfaces for performing operations on input devices.
You can call this function after the input service is started.
Parameters:
interface | Indicates the double pointer to the interface for performing operations on input devices. |
Returns:
Returns 0 if the operation is successful; returns an error code defined in RetStatus otherwise.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。