Skip to content

Commit

Permalink
add cirque35+trackpoint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
idank committed Feb 11, 2024
1 parent 8109354 commit c4c0fdc
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
15 changes: 13 additions & 2 deletions users/idank/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
#define POINTING_DEVICE_ROTATION_270
#endif

#ifdef POINTING_DEVICE_TRACKPOINT_CIRQUE35
#define MASTER_LEFT
#endif
#ifdef POINTING_DEVICE_CIRQUE35_TRACKPOINT
#define MASTER_RIGHT
#endif

#ifdef POINTING_DEVICE_DRIVER_ps2
// The default streaming mode is flaky and doesn't always work. This setting doesn't seem to affect performance.
#define PS2_MOUSE_USE_REMOTE_MODE
Expand All @@ -34,5 +41,9 @@
#define PS2_MOUSE_INIT_DELAY 500
#endif

// Sea-Picro bought with white LED use a different flash chip than the default QMK, uncomment this if flashing doesn't work properly.
// #define RP2040_FLASH_GD25Q64CS
#ifdef POINTING_DEVICE_DRIVER_cirque_pinnacle_i2c
#define CIRQUE_PINNACLE_DIAMETER_MM 35
// Tap for left click.
#define CIRQUE_PINNACLE_TAP_ENABLE
#define POINTING_DEVICE_GESTURES_SCROLL_ENABLE
#endif
34 changes: 34 additions & 0 deletions users/idank/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,37 @@ ifeq ($(strip $(POINTING_DEVICE)), trackball_trackpoint)
endif
endif
endif

ifeq ($(strip $(POINTING_DEVICE)), trackpoint_cirque35)
OPT_DEFS += -DPOINTING_DEVICE_TRACKPOINT_CIRQUE35

POINTING_DEVICE_ENABLE = yes
OPT_DEFS += -DSPLIT_POINTING_ENABLE
OPT_DEFS += -DPOINTING_DEVICE_COMBINED

ifeq ($(strip $(SIDE)), left)
PS2_ENABLE = yes
PS2_DRIVER = vendor
POINTING_DEVICE_DRIVER = ps2
endif
ifeq ($(strip $(SIDE)), right)
POINTING_DEVICE_DRIVER = cirque_pinnacle_i2c
endif
endif

ifeq ($(strip $(POINTING_DEVICE)), cirque35_trackpoint)
OPT_DEFS += -DPOINTING_DEVICE_CIRQUE35_TRACKPOINT

POINTING_DEVICE_ENABLE = yes
OPT_DEFS += -DSPLIT_POINTING_ENABLE
OPT_DEFS += -DPOINTING_DEVICE_COMBINED

ifeq ($(strip $(SIDE)), right)
PS2_ENABLE = yes
PS2_DRIVER = vendor
POINTING_DEVICE_DRIVER = ps2
endif
ifeq ($(strip $(SIDE)), left)
POINTING_DEVICE_DRIVER = cirque_pinnacle_i2c
endif
endif

0 comments on commit c4c0fdc

Please sign in to comment.