diff options
Diffstat (limited to 'keyboards/ploopyco/trackball/trackball.h')
| -rw-r--r-- | keyboards/ploopyco/trackball/trackball.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/keyboards/ploopyco/trackball/trackball.h b/keyboards/ploopyco/trackball/trackball.h index 959305a07..c58be6c84 100644 --- a/keyboards/ploopyco/trackball/trackball.h +++ b/keyboards/ploopyco/trackball/trackball.h | |||
| @@ -20,10 +20,15 @@ | |||
| 20 | 20 | ||
| 21 | #include "quantum.h" | 21 | #include "quantum.h" |
| 22 | #include "spi_master.h" | 22 | #include "spi_master.h" |
| 23 | #include "pmw3600.h" | 23 | #include "pmw3360.h" |
| 24 | #include "analog.h" | 24 | #include "analog.h" |
| 25 | #include "opt_encoder.h" | 25 | #include "opt_encoder.h" |
| 26 | #include "pointing_device.h" | 26 | #include "pointing_device.h" |
| 27 | #if defined(KEYBOARD_ploopyco_trackball_rev1) | ||
| 28 | # include "rev1.h" | ||
| 29 | #elif defined(KEYBOARD_ploopyco_trackball_rev1_005) | ||
| 30 | # include "rev1_005.h" | ||
| 31 | #endif | ||
| 27 | 32 | ||
| 28 | // Sensor defs | 33 | // Sensor defs |
| 29 | #define OPT_ENC1 F0 | 34 | #define OPT_ENC1 F0 |
| @@ -38,3 +43,17 @@ void process_wheel_user(report_mouse_t* mouse_report, int16_t h, int16_t v); | |||
| 38 | 43 | ||
| 39 | #define LAYOUT(BL, BM, BR, BF, BB) \ | 44 | #define LAYOUT(BL, BM, BR, BF, BB) \ |
| 40 | { {BL, BM, BR, BF, BB}, } | 45 | { {BL, BM, BR, BF, BB}, } |
| 46 | |||
| 47 | typedef union { | ||
| 48 | uint32_t raw; | ||
| 49 | struct { | ||
| 50 | uint8_t dpi_config; | ||
| 51 | }; | ||
| 52 | } keyboard_config_t; | ||
| 53 | |||
| 54 | extern keyboard_config_t keyboard_config; | ||
| 55 | |||
| 56 | enum ploopy_keycodes { | ||
| 57 | DPI_CONFIG = SAFE_RANGE, | ||
| 58 | PLOOPY_SAFE_RANGE, | ||
| 59 | }; | ||
