From 40c18b20f5f9ea120e1d1b05b921b7f33478e41d Mon Sep 17 00:00:00 2001 From: tobhe Date: Mon, 3 Jul 2023 15:54:07 +0000 Subject: [PATCH] Enable mouse.tp.mtbuttons for apldcms ok bru@ --- sys/arch/arm64/dev/apldc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm64/dev/apldc.c b/sys/arch/arm64/dev/apldc.c index 7f4d8fb56f0..ddd885226be 100644 --- a/sys/arch/arm64/dev/apldc.c +++ b/sys/arch/arm64/dev/apldc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apldc.c,v 1.8 2023/05/02 19:39:10 kettenis Exp $ */ +/* $OpenBSD: apldc.c,v 1.9 2023/07/03 15:54:07 tobhe Exp $ */ /* * Copyright (c) 2022 Mark Kettenis * @@ -1289,6 +1289,10 @@ int apldcms_enable(void *); void apldcms_disable(void *); int apldcms_ioctl(void *, u_long, caddr_t, int, struct proc *); +static struct wsmouse_param apldcms_wsmousecfg[] = { + { WSMOUSECFG_MTBTN_MAXDIST, 0 }, /* 0: Compute a default value. */ +}; + const struct wsmouse_accessops apldcms_accessops = { .enable = apldcms_enable, .disable = apldcms_disable, @@ -1350,7 +1354,8 @@ apldcms_configure(struct apldcms_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, apldcms_wsmousecfg, + nitems(apldcms_wsmousecfg)); } void -- 2.20.1