Hey everyone, I wrote a library (similar to @wormyrocks's library but more general purpose) for using the Switch's controllers with PCs (or any other platform it compiles on). It's written in C++ but also has a C wrapper available for C clients.
It's currently undocumented (I'm going to get on...