I have a Logitech mouse with a fancy wheel and want to provide programs such LibreOffice or Firefox with ability to scroll window content horizontally. Can you suggest how to do this? Mouse must send specific events on that?
x11/xev
For Firefox wheel tilt works as back/forward, Libreoffice seems to ignore tilt completely.
Code:
[ 50.056] (II) Using input driver 'mouse' for 'sysmouse'
[ 50.056] (**) sysmouse: always reports core events
[ 50.056] (**) Option "Device" "/dev/sysmouse"
[ 50.056] (==) sysmouse: Protocol: "Auto"
[ 50.056] (**) sysmouse: always reports core events
[ 50.056] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50
[ 50.056] (**) sysmouse: ZAxisMapping: buttons 4 and 5
[ 50.056] (**) sysmouse: Buttons: 5
[ 50.056] (**) Option "config_info" "devd:sysmouse"
[ 50.056] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7)
[ 50.056] (**) sysmouse: (accel) keeping acceleration scheme 1
[ 50.056] (**) sysmouse: (accel) acceleration profile 0
[ 50.056] (**) sysmouse: (accel) acceleration factor: 2.000
[ 50.056] (**) sysmouse: (accel) acceleration threshold: 4
[ 50.056] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0
[ 50.056] (II) sysmouse: SetupAuto: protocol is SysMouse
[ 50.056] (II) config/devd: device /dev/ums0 already opened
x11/xev
Code:
ButtonPress event, serial 37, synthetic NO, window 0x2c00001,
root 0x291, subw 0x0, time 11013814, (87,84), root:(958,620),
state 0x10, button 8, same_screen YES
ButtonRelease event, serial 37, synthetic NO, window 0x2c00001,
root 0x291, subw 0x0, time 11013962, (87,84), root:(958,620),
state 0x10, button 8, same_screen YES
ButtonPress event, serial 37, synthetic NO, window 0x2c00001,
root 0x291, subw 0x0, time 11014579, (87,84), root:(958,620),
state 0x10, button 9, same_screen YES
ButtonRelease event, serial 37, synthetic NO, window 0x2c00001,
root 0x291, subw 0x0, time 11014793, (87,84), root:(958,620),
state 0x10, button 9, same_screen YES
For Firefox wheel tilt works as back/forward, Libreoffice seems to ignore tilt completely.