I have a Kensington SlimBlade Trackball that has a sensor for scroll wheel.
I tried it in blender, it can’t neither zoom or scroll the view, actually it doesn’t have any response when I rotate the ball.
I used the libinput to capture the event, it should work. And the firefox doesn’t have any problem with it.
Any thing I could try to the blender preference or xorg’s configure ?
Yes, it looks like when my cursor in this that X window, scrolling the ball won’t produce any new event.
I am not sure which custom mapping I need to do here, any document ?
Thank you,
but I use the evtest to check the event report by this trackball,
they are not different from a normal mouse, I wonder whether I need to touch keycode mapping here ?
I compared the response from trackball with the one from the mouse in xev, the only different is that scrolling the wheel in a mouse would become button 4 or button 5 it in.
vent: time 1619767856.884535, -------------- SYN_REPORT ------------
^[[B^[[B^[[B^[[B^[[B^[[BEvent: time 1619767856.956532, type 2 (EV_REL), code 8 (REL_WHEEL), value -1
Event: time 1619767856.956532, type 2 (EV_REL), code 11 (REL_WHEEL_HI_RES), value -120
Event: time 1619767856.956532, -------------- SYN_REPORT ------------
^[[B^[[B^[[B^[[B^[[B^[[BEvent: time 1619767857.036531, type 2 (EV_REL), code 8 (REL_WHEEL), value -1
Event: time 1619767857.036531, type 2 (EV_REL), code 11 (REL_WHEEL_HI_RES), value -120
Event: time 1619767857.036531, -------------- SYN_REPORT ------------
^[[B^[[B^[[B^[[B^[[B^[[BEvent: time 1619767857.660525, type 2 (EV_REL), code 8 (REL_WHEEL), value -1
Event: time 1619767857.660525, type 2 (EV_REL), code 11 (REL_WHEEL_HI_RES), value -120
Event: time 1619767857.660525, -------------- SYN_REPORT ------------
Thank you, I figured out what the problem is
I trace the code the emulate_scroll_button_events() is the function generate the button pressing and releasing event from wheel scrolling. I work fine for both the trackball and the mouse.
From the document: The ButtonMapping option adjusts the logical button mapping, it does not affect how a physical button is mapped to a logical button.
I should not disable the scroll up/down for there is not a physical button for it.