HID API
Overview
The HID
namespace provides APIs for controlling various Human Interface Device (HID) peripherals like keyboards, mice, gamepads, and more. It also includes support for Raw HID communication.
Unlike MIDI system. The HID system is more straightforward and does not require the user to manage ports. So all input from different source devices is mixed together and sent to the application as a single stream and all outbound messages are sent to all endpoints. (If there's a need for more complex routing, please let me know and I will consider adding support for it.)
This API only supports USB HID. Bluetooth HID are not supported at this time.
The header file for this API is part of os/MatrixOS.h and the implementation is in os/system/HID/.