How to develop a new driver


Hi. I am looking to see how to develop a new driver for a custom controller?
Currently all I can see is the SDK which I understand, and I might be wrong, that contains the APIs that are used as consumer of the driver.
I would be more than happy if somebody could refer me to some sample code, or a header file, or anything that I could get some clues.


Just to enclose. I got this answer from one Gentleman on Khronos group`s slack channel:
OK, so that sadly isn’t supported yet. It’s on the roadmap and is called the device plugin for now. Defining a plugin interface for 3rd party devices (input, HMDs etc) on various platforms (not just OSes, but also mobile vs. desktop and VR vs AR) is a complex problem if you want to get it right in version 1. So it had to be delayed from OpenXR 1.0.
I can’t give you an ETA for that feature sadly, but delayed does not mean cancelled