In X11 (and probably in Wayland, since this is a libinput thing) you can define a button as a scroll lock.
So, hold down the scroll lock button and the thumbstick becomes a scroller. That leaves three buttons for left, middle and right.
So, hold down the scroll lock button and the thumbstick becomes a scroller. That leaves three buttons for left, middle and right.
"scroll button is also usually the middle button" -- these functions are completely separable in libinput.