Skip to content

Commit

Permalink
Revert "cleanup unnecessary kconfig options"
Browse files Browse the repository at this point in the history
This reverts commit 16d4ed8.
  • Loading branch information
ReFil committed Feb 21, 2024
1 parent 310fbe3 commit cac1c85
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions app/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,23 @@ config ZMK_TRACKPAD
bool "Enable ZMK trackpad emulation"
default n

config ZMK_TRACKPAD_MOUSE_MODE
bool "Enable optional additional mouse emulation"
default n

config ZMK_TRACKPAD_REVERSE_SCROLL
bool "Reverse scroll direction of trackpad in mosue mode"
default n

config ZMK_TRACKPAD_TICK_DURATION
int "Trackpad tick duration in ms"
default 8

config ZMK_TRACKPAD_MAX_FINGERS
int "Maximum number of fingers reported in PTP"
range 3 5
default 5

config ZMK_TRACKPAD_PHYSICAL_X
int "Maximum X size of trackpad in 0.1cm increments"
default 600
Expand Down
2 changes: 2 additions & 0 deletions app/boards/arm/bt60/bt60_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ CONFIG_ZMK_USB_LOGGING=y

CONFIG_ZMK_MOUSE=y
CONFIG_ZMK_TRACKPAD=y
CONFIG_ZMK_TRACKPAD_MOUSE_MODE=y
CONFIG_ZMK_TRACKPAD_TICK_DURATION=3
CONFIG_ZMK_TRACKPAD_PHYSICAL_X=650
CONFIG_ZMK_TRACKPAD_PHYSICAL_Y=1065
CONFIG_ZMK_TRACKPAD_LOGICAL_X=700
Expand Down
1 change: 1 addition & 0 deletions app/boards/arm/stp/stp_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ CONFIG_ZMK_USB_LOGGING=y
CONFIG_I2C=y
CONFIG_ZMK_MOUSE=y
CONFIG_ZMK_TRACKPAD=y
CONFIG_ZMK_TRACKPAD_TICK_DURATION=3
CONFIG_ZMK_TRACKPAD_PHYSICAL_X=650
CONFIG_ZMK_TRACKPAD_PHYSICAL_Y=1065
CONFIG_ZMK_TRACKPAD_LOGICAL_X=700
Expand Down
2 changes: 1 addition & 1 deletion app/src/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct zmk_hid_ptp_feature_certification_report ptp_feature_certification_report
// Feature report for device capabilities
struct zmk_hid_ptp_feature_capabilities_report ptp_feature_capabilities_report = {
.report_id = ZMK_HID_REPORT_ID_FEATURE_PTP_CAPABILITIES,
.max_touches = 5,
.max_touches = CONFIG_ZMK_TRACKPAD_MAX_FINGERS,
.pad_type = PTP_PAD_TYPE_NON_CLICKABLE};
#endif

Expand Down

0 comments on commit cac1c85

Please sign in to comment.