diff --git a/keyboards/handwired/aball/aball.c b/keyboards/handwired/aball/aball.c index 0b3d2f165c..2ecc69ebba 100644 --- a/keyboards/handwired/aball/aball.c +++ b/keyboards/handwired/aball/aball.c @@ -15,4 +15,12 @@ */ #include "aball.h" +#include "pointing_device.H" + const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; + +void pointing_device_init_kb(void) { +#ifdef ABALL_CPI + pointing_device_set_cpi(ABALL_CPI); +#endif +} diff --git a/keyboards/handwired/aball/config.h b/keyboards/handwired/aball/config.h index 12f13fb4a8..ac55dba0a7 100644 --- a/keyboards/handwired/aball/config.h +++ b/keyboards/handwired/aball/config.h @@ -32,4 +32,6 @@ along with this program. If not, see . #define DIRECT_PINS {{NO_PIN}} -#define ADNS9800_CS_PIN F7 +#define PMW3360_CS_PIN F7 +#define POINTING_DEVICE_INVERT_X +#define ABALL_CPI 12000 // From the docs: "The CPI range is 100-12000, in increments of 100. Defaults to 1600 CPI." diff --git a/keyboards/handwired/aball/rules.mk b/keyboards/handwired/aball/rules.mk index 9063957737..d3744bcc70 100644 --- a/keyboards/handwired/aball/rules.mk +++ b/keyboards/handwired/aball/rules.mk @@ -19,4 +19,4 @@ AUDIO_ENABLE = no # Audio output # Add trackball support POINTING_DEVICE_ENABLE = yes -POINTING_DEVICE_DRIVER = adns9800 +POINTING_DEVICE_DRIVER = pmw3360