From 57dc72fbf93028b908f3744c0cacd1fe1e973ba8 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Mon, 8 Apr 2024 02:46:52 +0000 Subject: [PATCH] fix(mouse): USB and trackpad fixes. * Enable composite USB device automatically, tweak the various default sizes. * Don't set the default trackpad logical/physical sizes. --- app/src/mouse/Kconfig | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/app/src/mouse/Kconfig b/app/src/mouse/Kconfig index afe28c932a0a..389a4f6abff8 100644 --- a/app/src/mouse/Kconfig +++ b/app/src/mouse/Kconfig @@ -5,7 +5,7 @@ menuconfig ZMK_MOUSE bool "Mouse Emulation" select INPUT select INPUT_THREAD_PRIORITY_OVERRIDE - + select USB_COMPOSITE_DEVICE if ZMK_USB if ZMK_MOUSE @@ -18,16 +18,17 @@ endif config ZMK_TRACKPAD bool "Trackpad support" + select ENABLE_HID_INT_OUT_EP if ZMK_USB if ZMK_TRACKPAD if ZMK_USB -config HID_INTERRUPT_EP_MPS - default 320 +config USB_REQUEST_BUFFER_SIZE + default 512 -config ENABLE_HID_INT_OUT_EP - default y +config HID_INTERRUPT_EP_MPS + default 64 endif @@ -37,19 +38,15 @@ config ZMK_TRACKPAD_FINGERS config ZMK_TRACKPAD_LOGICAL_X int "Logical X" - default 256 config ZMK_TRACKPAD_LOGICAL_Y int "Logical Y" - default 256 config ZMK_TRACKPAD_PHYSICAL_X int "Physical X" - default 256 config ZMK_TRACKPAD_PHYSICAL_Y int "Physical Y" - default 256 endif # ZMK_TRACKPAD