Skip to content

Commit 2864dbd

Browse files
authored
Merge pull request #388 from b-aaz/psm_workaround
psm(4): Disabled IMEX side-buttons by default.
2 parents 47298c1 + 18d8a1f commit 2864dbd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

sys/dev/atkbdc/psm.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ static int verbose = PSM_DEBUG;
531531
static int synaptics_support = 1;
532532
static int trackpoint_support = 1;
533533
static int elantech_support = 1;
534+
static int explorer_sidebuttons = 0;
534535
static int mux_disabled = -1;
535536

536537
/* for backward compatibility */
@@ -2991,6 +2992,9 @@ SYSCTL_INT(_hw_psm, OID_AUTO, trackpoint_support, CTLFLAG_RDTUN,
29912992
SYSCTL_INT(_hw_psm, OID_AUTO, elantech_support, CTLFLAG_RDTUN,
29922993
&elantech_support, 0, "Enable support for Elantech touchpads");
29932994

2995+
SYSCTL_INT(_hw_psm, OID_AUTO, explorer_sidebuttons, CTLFLAG_RW,
2996+
&explorer_sidebuttons, 0, "Enable support for Intellimouse Explorer side buttons");
2997+
29942998
SYSCTL_INT(_hw_psm, OID_AUTO, mux_disabled, CTLFLAG_RDTUN,
29952999
&mux_disabled, 0, "Disable active multiplexing");
29963000

@@ -4998,6 +5002,10 @@ psmsoftintr(void *arg)
49985002
z = (pb->ipacket[3] & MOUSE_EXPLORER_ZNEG) ?
49995003
(pb->ipacket[3] & 0x0f) - 16 :
50005004
(pb->ipacket[3] & 0x0f);
5005+
if (!explorer_sidebuttons)
5006+
{
5007+
break;
5008+
}
50015009
ms.button |=
50025010
(pb->ipacket[3] & MOUSE_EXPLORER_BUTTON4DOWN) ?
50035011
MOUSE_BUTTON4DOWN : 0;

0 commit comments

Comments
 (0)