aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ploopyco/trackball/trackball.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ploopyco/trackball/trackball.h')
-rw-r--r--keyboards/ploopyco/trackball/trackball.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/keyboards/ploopyco/trackball/trackball.h b/keyboards/ploopyco/trackball/trackball.h
index c58be6c84..fd2bf465a 100644
--- a/keyboards/ploopyco/trackball/trackball.h
+++ b/keyboards/ploopyco/trackball/trackball.h
@@ -45,15 +45,25 @@ void process_wheel_user(report_mouse_t* mouse_report, int16_t h, int16_t v);
45 { {BL, BM, BR, BF, BB}, } 45 { {BL, BM, BR, BF, BB}, }
46 46
47typedef union { 47typedef union {
48 uint32_t raw; 48 uint32_t raw;
49 struct { 49 struct {
50 uint8_t dpi_config; 50 uint8_t dpi_config;
51 }; 51 };
52} keyboard_config_t; 52} keyboard_config_t;
53 53
54extern keyboard_config_t keyboard_config; 54extern keyboard_config_t keyboard_config;
55extern uint16_t dpi_array[];
55 56
56enum ploopy_keycodes { 57enum ploopy_keycodes {
58#ifdef VIA_ENABLE
59 DPI_CONFIG = USER00,
60#else
57 DPI_CONFIG = SAFE_RANGE, 61 DPI_CONFIG = SAFE_RANGE,
62#endif
63 DRAG_SCROLL,
64#ifdef VIA_ENABLE
65 PLOOPY_SAFE_RANGE = SAFE_RANGE,
66#else
58 PLOOPY_SAFE_RANGE, 67 PLOOPY_SAFE_RANGE,
68#endif
59}; 69};