NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/58435: synaptics_aux_mid_button_scroll not working



The following reply was made to PR kern/58435; it has been noted by GNATS.

From: mlelstv%serpens.de@localhost (Michael van Elst)
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/58435: synaptics_aux_mid_button_scroll not working
Date: Thu, 18 Jul 2024 23:49:42 -0000 (UTC)

 kre%munnari.OZ.AU@localhost (Robert Elz) writes:
 
 >-		    dy && (psc->buttons & 0x2)) {
 >+		    dy && (buttons & 0x2)) {
 
 You could just use (psc->buttons & 0x42) to see if main or
 aux "middle button" are pressed. Ideally you would have
 names for the "magic" numbers too.
 
 This would leave the idiom:
 
 # merge main and aux button state into wsmouse button mask
 buttons = ..
 # create input event for wsmouse
 wsmouse_input(...
 
 as is.
 


Home | Main Index | Thread Index | Old Index