目录

HidDdk

Overview

Provides the HID DDK interfaces, including creating devices, sending events, and destroying devices, for driver development of HID devices.

System capability: SystemCapability.Driver.HID.Extension

Since: 11

Files

Name Description
hid_ddk_api.h Declares the HID DDK (Driver Development Kit) interfaces for host-side access to input devices. This module provides the capabilities to create, open, read, and write HID devices, and supports device management and event injection. It supports two usage modes: one is the creation of virtual HID devices and event injection, which is suitable for scenarios such as simulating keyboard, mouse, and touchscreen input; the other is the access to and communication with real HID devices, which supports opening, reading, and writing device reports and obtaining device information, and is suitable for scenarios involving data interaction with HID devices.
hid_ddk_types.h Provides the enum variables and struct definitions in the HID DDK, supporting developers in defining and operating HID devices during driver development. It is suitable for scenarios involving interaction with input devices such as mouse, keyboard, and touchscreen, and provides complete definitions of device features, event types, key codes, and coordinate axes, helping developers quickly implement driver development for HID devices.