Anyone have a good custom Input Device example?

Anyone have a simple implementation of a custom input device in c++? I’ve been trying to pick apart the very few examples I can find on Github because the docs are non-existent on this.
I wish there were some nice docs on this topic like what Unity has: Devices | Input System | 1.3.0