seife / marble_fx

Arduino leonardo as USB converter for Logitech Trackman MarbleFX
3 stars 2 forks source link

Enable a switch for optional internal scrolling or reporting button 8. #2

Closed sobukus closed 9 hours ago

sobukus commented 2 months ago

This serves to configure two-dimensional scrolling via software wheel emulation just like when having the Trackball wired up directly to a PS/2 port. Since many people could be happy with the effortless vertical scrolling in hardware, the default stays as it is.

Switch pin 6 of the Arduino to ground to enable reporting of button 8 instead of scroll events. On a recent Linux box with Xorg issuing

name='Arduino LLC Arduino Leonardo'
xinput --set-prop "$name" 'libinput Scroll Method Enabled' 0 0 1
xinput --set-prop "$name" 'libinput Button Scrolling Button' 8
xinput set-button-map "$name" 1 2 3 4 5 6 7 0

Gives you the original experience (the last line avoiding spurious clicks from the scroll button).

seife commented 1 day ago

oops, sorry, this fell under my radar (need to check my notification settings...), will review it soon.