Controller for reference \^

I’ve just gotten a new controller and it’s the first one i’ve had that has m1 and m2 buttons as well as a few other fancy gizmos.

However they don’t seem to be useful at all for me as in minecraft they just act the same as the d-pad.

I’d love for them to be a separate button but I can’t find anyway of making this happen.

Also whilst my trigger buttons both work outside the controls menu, in the controls menu they are not recognised so I am unable to input them to anything but the default.
Custom Controller With Minecraft Java