My joystick has two buttons connected to the trigger. Half squeeze and full squeeze.
I have half squeeze configured to “hold brakes normal” and full squeeze to “hold brakes max”.
If you have left and right brakes, this applies both at once.
I have another button that I assigned to “toggle brakes max” which is my parking brake.