Back/forward/extra mouse buttons

It depends on what your specific mouse model is and if it has system settings how its output is mapped.

On the Processing side, this is broken down in the event package:

If you are on the desktop specifically then Processing uses java.awt.Event … except with P2D / P3D…

…for more on that, see: