1 - Button that will be pressed with the axis of movement, eg. button 33
2 - Axis that will press the button, eg. axis 6
3 and 4 - Minimum and maximum vale of axis band that will be converted in button press, eg. 0 and 48%

Then set other Axis to Button using the same axis:
1 - Button 34
2 - Axis 6
3 and 4 - 52% and 100%

So moving the axis 6 up and down (or left and right...) will be press respectively button 34 (up) and button 33 (down), in the middle (49-5-51%) of axis no button is pressed.

As you can create 4 button press with the Axis to Button function and the mini-stick has 2 axis, you can set then as 4 way HAT.