4 ms·
That is very nice. I wonder how could one integrate left mouse click in there and also if it would be a fun unconventional gaming controller for a tailor made g
by hawski 6y ago
That is very nice. I wonder how could one integrate left mouse click in there and also if it would be a fun unconventional gaming controller for a tailor made game. It would have to be balanced, as one of the commenters wondered here. A graph coming from playing with it like a ball would be interesting to see.
I gather people reading this thread could have some knowledge regarding Linux/X11 input devices handling. I bought a TLK keyboard with a trackball built in and I would like to use it as a scrolling ball. But I would like for it to send events like from two finger scroll on a touchpad, that applications aware of it would scroll smoothly like on a Macbook or a Chromebook. I assume it has to do with libinput. How could I approach this? Bonus points if I could use scroll-lock key and indicator for the scrolling mode.
EDIT: I bought this one: https://perixx.com/furniture_store_view/catalog/product/view/_ignore_category/1/id/409/s/perixx-periboard-505h-plus-wired-usb-trackball-keyboard-built-in-2x-usb2-0-hubs/ https://perixx.com/furniture_store_view/catalog/product/view... One issue I have with it: I don't know where is the numlock key, probably something with Fn keycombo, but they did not print much on key caps.
EDIT2: I found out, that what I want is smooth and precise scrolling - https://pavelfatin.com/scrolling-with-pleasure/ https://pavelfatin.com/scrolling-with-pleasure/
- nsajko 6y agoWhat you are asking for seems to be described here: https://wiki.archlinux.org/index.php/Libinput#Scroll_with_mouse_by_holding_a_button https://wiki.archlinux.org/index.php/Libinput#Scroll_with_mo... https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse https://wiki.archlinux.org/index.php/Logitech_Marble_Mouse Alternatively, buy an input device that runs QMK; then you will be able to configure this at the input device's end (independently of the host device). For example, the Ploopy open source trackball and mouse run QMK, see this for configuring the trackball for scrolling: https://www.reddit.com/r/ploopy/comments/kw80a3/use_ball_as_scroll_wheel/ https://www.reddit.com/r/ploopy/comments/kw80a3/use_ball_as_...
- hawski 6y agoThank you kindly! After I issued xinput set-prop "HID 04d9:a088 Mouse" "libinput Button Scrolling Button" 3 it works, because this trackball does not have the default button 2. All with precise and smooth scrolling where it's supported. I'll enable smooth scrolling on Firefox to make use of it. Now I'll only figure out if there is a setting to keep it enabled by default - to inverse the scroll button behavior. EDIT: Issuing xinput set-prop "HID 04d9:a088 Mouse" "libinput Button Scrolling Button Lock Enabled" 1 Changes the scroll button behavior to a toggle. So it is exactly as I wanted. Perfect! Thanks again!
- nsajko 6y ago> Now I'll only figure out if there is a setting to keep it enabled by default - to inverse the scroll button behavior. If you're using xinit (or startx) to fire up you Xorg, you can run the xinput commands in your xinitrc: https://wiki.archlinux.org/index.php/Xinit https://wiki.archlinux.org/index.php/Xinit A decent window manager or desktop environment setup (if it isn't intended for running with xinit) will offer some other way of automating this. But there's also the option of doing this configuration on the Xorg server side in some xorg.conf, like in the links I gave previously.