Skip to content

Commit

Permalink
fix(mouse): USB and trackpad fixes.
Browse files Browse the repository at this point in the history
* Enable composite USB device automatically, tweak the
  various default sizes.
* Don't set the default trackpad logical/physical sizes.
  • Loading branch information
petejohanson committed Apr 8, 2024
1 parent 671e29e commit 57dc72f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions app/src/mouse/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 57dc72f

Please sign in to comment.