diff options
author | Drashna Jaelre <drashna@live.com> | 2020-10-26 23:09:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 17:09:11 +1100 |
commit | 33074bcbadbafa3a359efda5a45a9412e4eca7d2 (patch) | |
tree | 5682dd93d88aa91a91b2e111f1b2a1e5604d7633 /keyboards/ploopyco/trackball/trackball.h | |
parent | 555b1640b26fa09ea5f6b5bc7ea07dc654a326f9 (diff) |
[Keyboard] Bug fixes and improvements to PloopyCo devices (#10573)
Co-authored-by: Ryan <fauxpark@gmail.com>
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 959305a07e..c58be6c84a 100644 --- a/keyboards/ploopyco/trackball/trackball.h +++ b/keyboards/ploopyco/trackball/trackball.h @@ -20,10 +20,15 @@ #include "quantum.h" #include "spi_master.h" -#include "pmw3600.h" +#include "pmw3360.h" #include "analog.h" #include "opt_encoder.h" #include "pointing_device.h" +#if defined(KEYBOARD_ploopyco_trackball_rev1) +# include "rev1.h" +#elif defined(KEYBOARD_ploopyco_trackball_rev1_005) +# include "rev1_005.h" +#endif // Sensor defs #define OPT_ENC1 F0 @@ -38,3 +43,17 @@ void process_wheel_user(report_mouse_t* mouse_report, int16_t h, int16_t v); #define LAYOUT(BL, BM, BR, BF, BB) \ { {BL, BM, BR, BF, BB}, } + +typedef union { + uint32_t raw; + struct { + uint8_t dpi_config; + }; +} keyboard_config_t; + +extern keyboard_config_t keyboard_config; + +enum ploopy_keycodes { + DPI_CONFIG = SAFE_RANGE, + PLOOPY_SAFE_RANGE, +}; |