Adding these options - switching the scroll direction and a
customizable button map for tapping - to wsmouse and wstpad would
not be a big deal. If there is interest, I could prepare a patch.
I doubt, however, that both should be included in the named and
visible wsmouse options of wsconsctl. While the so-called
"natural scrolling" seems to be popular, customizing the tap events
is a somewhat rare requirement.
BTW, reverting the scroll direction is also possible by configuring
a "ZAxisMapping" in ws(4), with an xorg.conf like this one:
Section "InputClass"
Identifier "touchpad_scroll_buttons"
MatchIsTouchPad "true"
Option "ZAxisMapping" "5 4"
EndSection
As it happens, I'm just testing patches that add "precision
scrolling" to wscons. If they make it into the tree, it would make
sense to defer other changes in this area.
On 3/2/19 7:29 PM, Ted Unangst wrote:
> One more quick hack. I have become accustomed to scroll going in the reverse
> direction. Previously set a negative delta with synclient.
>
> Again, not sure how to connect this to wsconsctl, but here's what I'm running.
>
> Index: wstpad.c
> ===================================================================
> RCS file: /home/cvs/src/sys/dev/wscons/wstpad.c,v
> retrieving revision 1.22
> diff -u -p -r1.22 wstpad.c
> --- wstpad.c 29 Dec 2018 21:03:58 -0000 1.22
> +++ wstpad.c 2 Mar 2019 07:23:43 -0000
> @@ -935,7 +939,7 @@ wstpad_cmds(struct wsmouseinput *input,
> input->motion.sync |= SYNC_DELTAS;
> continue;
> case VSCROLL:
> - input->motion.dz = tp->scroll.dz;
> + input->motion.dz = -tp->scroll.dz;
> input->motion.sync |= SYNC_DELTAS;
> continue;
> default:
>
>