summaryrefslogtreecommitdiff
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 c58be6c84a..fd2bf465a5 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);
{ {BL, BM, BR, BF, BB}, }
typedef union {
- uint32_t raw;
- struct {
- uint8_t dpi_config;
- };
+ uint32_t raw;
+ struct {
+ uint8_t dpi_config;
+ };
} keyboard_config_t;
extern keyboard_config_t keyboard_config;
+extern uint16_t dpi_array[];
enum ploopy_keycodes {
+#ifdef VIA_ENABLE
+ DPI_CONFIG = USER00,
+#else
DPI_CONFIG = SAFE_RANGE,
+#endif
+ DRAG_SCROLL,
+#ifdef VIA_ENABLE
+ PLOOPY_SAFE_RANGE = SAFE_RANGE,
+#else
PLOOPY_SAFE_RANGE,
+#endif
};