Gameball 2 scroll areas
Hello, I recently bought a Gameball trackball. I've done libinput configuration in several other trackballs like Logitech marble, Slimblade and Elecom Huge. But this device specifically has 2 scroll areas that work as 2 scroll buttons. The problem is that libinput's ButtonMapping option has only 2 positions for Scroll Up and Scroll down. How can I inform both pair of codes of both scroll areas to ButtonMapping ?
I'm using Linux Mint, but it shouldn't change much in other linux versions. With xinput I got the following button maps:
Button Code
Left upper 1
Left middle 2
Left lower 8
Right upper 3
Right middle Internal – DPI change
Right lower 9
Left scroll area 6 and 7
Right scroll area 4 and 5
I configured it changing the ButtonMapping in /usr/share/X11/xorg.conf.d/40-libinput.conf to this:
Section "InputClass"
Identifier "- GameBall"
MatchProduct "- GameBall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "ButtonMapping" "8 2 3 4 5 6 7 1 9"
Option "ScrollButton" "3"
Option "ScrollMethod" "button"
EndSection
However with this configuration the left scroll area isn't working. How can I configure ButtonMapping to use the 2 areas ?
The strange thing is that is I remove this section from 40-libinput.conf, the buttons aren't in the desired configuration but both areas work.
Another strange thing is that when I change ButtonMapping order the button codes reported by xinput change. I'm certainly missing something here.