OBS is acting up; I think I need to reboot. I will do that some time today. In the meantime, what do you need? I am assuming you only need button presses; the gist above shows how to handle the 6DOF stuff perfectly (as far as my testing went.)
the buttons are weird. some of them generate a press event and a release event when you release the key, some generate a press event and a hold event when you hold the key down for a moment. some of them generate a press event when you press the button and a release event when you release.