SpotlightKid / python-rtmidi

Python bindings for the cross-platform MIDI I/O library RtMidi
https://spotlightkid.github.io/python-rtmidi/
Other
349 stars 65 forks source link

Using Python to get IdVendor and IdProduct of the device input just came from #134

Closed Beeeton closed 1 year ago

Beeeton commented 1 year ago

I need to somehow differ 2 keyboard inputs, and the only way to do that seems to work is comparing their IdVendor and IdProduct values. I can get these for both keyboards, but i can't get these values during runtime(on KeyPressed event, for example). Any ideas how to do that?

SpotlightKid commented 1 year ago

Libusb?

I think this is out-of scope of python-rtmidi and maybe even RtMidi. Anyway, if at all, it should be implemented in the latter.