summaryrefslogtreecommitdiff
path: root/keyboards/ploopyco/trackball/trackball.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2021-02-14 20:09:24 -0800
committerGitHub <noreply@github.com>2021-02-14 20:09:24 -0800
commite768fb83bdf1bc292cefc9f3f70cb1597c3108fc (patch)
tree923d17e5a01a8553e2d4b7b60f6b21540424023b /keyboards/ploopyco/trackball/trackball.h
parent9ee12820197f38f6618b78f92481f3ffd2d8b7e5 (diff)
[Keyboard] PloopyCo VIA updates (#11290)
Co-authored-by: ridingqwerty <george.g.koenig@gmail.com> Co-authored-by: Glen D'souza <gdsouza@linuxmail.org>
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
};