typedef struct Input_DeviceListener {...} Input_DeviceListener Defines the struct for listening for device hot swapping. It is applicable to applications that need to respond to input device connection and disconnection in real time, such as games and music players. By listening for device hot swapping events, applications can update the input status in a timely manner, improving user experience and avoiding exceptions caused by device disconnection.
Since: 13
Related module: input
Header file: oh_input_manager.h
| Name | Description |
|---|---|
| Input_DeviceAddedCallback deviceAddedCallback | Defines a callback used to receive the device hot-plug event. |
| Input_DeviceRemovedCallback deviceRemovedCallback | Defines a callback used to receive the device hot-unplug event. |