Slider mode change into 3-mode buttons

Hi there!

I have a controller which has a slider.
I am using PX4 with QGroundControl.
I want to change it to operate as a button with three modes. (left, middle and right)
Is it somehow possible to set it?
For Example: when I shift to the maximum left (or even a range)- it will be a one mode.
When it’s in the middle- a default mode.

Any advices will help!