mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-08 23:05:43 +00:00
Redefine pmw3360_MAXCPI
(as KEYBALL_PMW3360_MAXCPI
)
This was previously defined in the custom driver. The `keyball_set_cpi()` needs it (indirectly), so it has been redefined.
This commit is contained in:
parent
6451272edb
commit
6d9c10235f
@ -25,7 +25,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include <string.h>
|
||||
|
||||
const uint8_t CPI_DEFAULT = KEYBALL_CPI_DEFAULT / 100;
|
||||
const uint8_t CPI_MAX = pmw3360_MAXCPI + 1;
|
||||
/**
|
||||
* The Keyball library uses a range of 0 <= cpi <= 119 internally, and the true
|
||||
* CPI value is ( cpi + 1 ) * 100.
|
||||
*/
|
||||
const uint8_t CPI_MAX = KEYBALL_PMW3360_MAXCPI + 1; // 119 + 1 = 12000 CPI actual
|
||||
const uint8_t SCROLL_DIV_MAX = 7;
|
||||
|
||||
const uint16_t AML_TIMEOUT_MIN = 100;
|
||||
|
@ -49,6 +49,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# define KEYBALL_SCROLLSNAP_TENSION_THRESHOLD 12
|
||||
#endif
|
||||
|
||||
#ifndef KEYBALL_PMW3360_MAXCPI
|
||||
# define KEYBALL_PMW3360_MAXCPI 119 // 12000 CPI actual
|
||||
#endif
|
||||
|
||||
/// Specify SROM ID to be uploaded PMW3360DW (optical sensor). It will be
|
||||
/// enabled high CPI setting or so. Valid valus are 0x04 or 0x81. Define this
|
||||
/// in your config.h to be enable. Please note that using this option will
|
||||
|
Loading…
Reference in New Issue
Block a user