Detect MIDI device connect / disconnect?

Any way to detect when MIDI devices are connected or disconnected? If not, is this something that can be added (whether by Jules or someone else)?

There isn’t a JUCE way of doing this…

Just an FYI, check out this post: [MIDI Device Insertion/Removal]

The link isn’t working, has a callback been added for midi device connect/disconnect since?
Also is there a way to differentiate between MIDI devices and MPE devices?

See this thread:

Rail