PureBasic - HID

Overview

The HID (Human Interface Device) library provides access to HID class devices such as keyboards, mice, game controllers, and other input devices. This library allows enumeration of available HID devices, opening them for communication, and reading/writing data using standard HID reports.

HID devices are identified by their Vendor ID (VID) and Product ID (PID). The library supports both generic HID access and device-specific communication through feature reports, input reports, and output reports.

For advanced HID operations, the library provides access to report descriptors and indexed strings for device identification.

Command Index

CloseHID
DisableHIDBlockingMode
ExamineHIDs
GetHIDIndexedString
GetHIDReportDescriptor
HIDError
HIDInfo
IsHID
NextHID
OpenHID
OpenHIDPath
ReadHIDData
ReceiveHIDFeatureReport
ReceiveHIDInputReport
SendHIDFeatureReport
SendHIDOutputReport
WriteHIDData

Example

HID.pb

Supported OS

All

Reference Manual - Index