Extra mouse buttons

Is there anyway to detect extra mouse buttons? (others than left, middle and right click)

I suspect it’s related to juce::ModifierKeys::getRawFlags() but I’m not sure if it’s platform independent.