Sadly JUCE doesn’t support the additional buttons.
For example on Win32, you’d go here to get the proper commands: Responding to Mouse Clicks - Win32 apps | Microsoft Learn . In other words, I think you’d have to add MK_XBUTTON1 and MK_XBUTTON2 to the input process in the native Windows code in JUCE…