summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorUlf Brosziewski <bru@cvs.openbsd.org>2023-07-02 21:44:05 +0000
committerUlf Brosziewski <bru@cvs.openbsd.org>2023-07-02 21:44:05 +0000
commit54b2bf92bd107ecf4154b4d436c23cf265ba1289 (patch)
tree7074735e1c9c83b65b997d96b8875ce281551996 /sys/arch
parente9d425bbe4989fcae33ff7295ab4b97a57d39723 (diff)
Add button mappings for two- and three-finger clicks on clickpads.
Based on a proposal of tobhe@. ok tobhe@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm64/dev/aplhidev.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/arm64/dev/aplhidev.c b/sys/arch/arm64/dev/aplhidev.c
index 5b0c8185f2b..db6feb6bcca 100644
--- a/sys/arch/arm64/dev/aplhidev.c
+++ b/sys/arch/arm64/dev/aplhidev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aplhidev.c,v 1.11 2023/04/10 15:14:04 tobhe Exp $ */
+/* $OpenBSD: aplhidev.c,v 1.12 2023/07/02 21:44:04 bru Exp $ */
/*
* Copyright (c) 2021 Mark Kettenis <kettenis@openbsd.org>
* Copyright (c) 2013-2014 joshua stein <jcs@openbsd.org>
@@ -683,6 +683,10 @@ struct ubcmtp_finger {
/* Use a constant, synaptics-compatible pressure value for now. */
#define DEFAULT_PRESSURE 40
+static struct wsmouse_param aplms_wsmousecfg[] = {
+ { WSMOUSECFG_MTBTN_MAXDIST, 0 }, /* 0: Compute a default value. */
+};
+
struct aplms_softc {
struct device sc_dev;
struct device *sc_wsmousedev;
@@ -762,7 +766,8 @@ aplms_configure(struct aplms_softc *sc)
hw->mt_slots = UBCMTP_MAX_FINGERS;
hw->flags = WSMOUSEHW_MT_TRACKING;
- return wsmouse_configure(sc->sc_wsmousedev, NULL, 0);
+ return wsmouse_configure(sc->sc_wsmousedev,
+ aplms_wsmousecfg, nitems(aplms_wsmousecfg));
}
void