Skip to content

Commit

Permalink
add preliminary support for azoteq_iqs5xx
Browse files Browse the repository at this point in the history
  • Loading branch information
burkfers committed Feb 19, 2024
1 parent 24201fd commit 614c959
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maccel/maccel.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ A device specific parameter required to ensure consistent acceleration behaviour
# define DEVICE_CPI_PARAM 0.087
# elif defined(POINTING_DEVICE_DRIVER_cirque_pinnacle_spi)
# define DEVICE_CPI_PARAM 0.087
# elif defined(POINTING_DEVICE_DRIVER_azoteq_iqs5xx)
# define DEVICE_CPI_PARAM 1
# else
# warning "Unsupported pointing device driver! Please manually set the scaling parameter DEVICE_CPI_PARAM to achieve a consistent acceleration curve!"
# define DEVICE_CPI_PARAM 0.087
Expand Down Expand Up @@ -121,6 +123,9 @@ report_mouse_t pointing_device_task_maccel(report_mouse_t mouse_report) {
// get device cpi setting, only call when mouse hasn't moved since more than 200ms
static uint16_t device_cpi = 300;
if (delta_time > 200) {
#ifdef POINTING_DEVICE_DRIVER_azoteq_iqs5xx
wait_ms(2);
#endif // POINTING_DEVICE_DRIVER_azoteq_iqs5xx
device_cpi = pointing_device_get_cpi();
#ifdef POINTING_DEVICE_DRIVER_pmw3360
// janky bug-fix for PMW3360
Expand Down

0 comments on commit 614c959

Please sign in to comment.