Skip to content

Commit

Permalink
Merge pull request #97 from koron/keyball46-fix-left-detection
Browse files Browse the repository at this point in the history
keyball46: earlier ball detection
  • Loading branch information
koron authored Mar 5, 2022
2 parents 55e63d5 + 2db737c commit 117518a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions qmk_firmware/keyboards/keyball/lib/keyball/keyball.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,17 @@ static void add_scroll_div(int8_t delta) {
//////////////////////////////////////////////////////////////////////////////
// Pointing device driver

#if KEYBALL_MODEL == 46
void keyboard_pre_init_kb(void) {
keyball.this_have_ball = pmw3360_init();
keyboard_pre_init_user();
}
#endif

void pointing_device_driver_init(void) {
#if KEYBALL_MODEL != 46
keyball.this_have_ball = pmw3360_init();
#endif
if (keyball.this_have_ball) {
pmw3360_cpi_set(CPI_DEFAULT - 1);
pmw3360_reg_write(pmw3360_Motion_Burst, 0);
Expand Down

0 comments on commit 117518a

Please sign in to comment.