23 points · by fanf2 · 2y ago · 9 comments
I'd always thought of HID as keyboard + mouse, but it's actually quite a broadscale system. It just so happens we - for the most part - never used 98% of it. (Then had to reinvent a bunch of the power reporting stuff for usb-pd.)
The standard does seem to allow for some complex setups which is pretty cool.
It makes sense. No need for a different input stack implementation in the OS to handle common peripherals like Keyboards and Mice just because they are using a different communication medium. HID works well for this.
I found this doc difficult to read at times and has some vague parts where I had to look at existing open-source implementations in other languages to understand the feature/functionality more.
However, I was pleasantly surprised by how good the HID protocol is and how much it does behind the scenes to enable the peripherals we use everyday.
I would argue that it needs a new iteration. Some of the modern peripherals like gaming mice have extra functionality that you need to install the OEM's software which is just additional bloat. A new iteration of this protocol could bring some/all of the common modern functionality natively to operating systems and reduce our reliance on extra software that just boats the operating system and slows things down.
[1]: https://www.nanoframework.net/ [2]: https://blog.mrcsharp.dev/post/automatically-lock-pc-using-n...