Skip to content

Commit

Permalink
Merge pull request #676 from yoichi/fix-description-of-cpi-accessors
Browse files Browse the repository at this point in the history
Fix description of cpi accessors
  • Loading branch information
koron authored Oct 14, 2024
2 parents ab40534 + 4ff7319 commit f73a4ff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions qmk_firmware/keyboards/keyball/lib/keyball/keyball.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,17 +256,17 @@ uint8_t keyball_get_scroll_div(void);
void keyball_set_scroll_div(uint8_t div);

/// keyball_get_cpi gets current CPI of trackball.
/// The actual CPI value is the returned value +1 and multiplied by 100:
/// The actual CPI value is the returned value multiplied by 100:
///
/// CPI = (v + 1) * 100
/// CPI = v * 100
uint8_t keyball_get_cpi(void);

/// keyball_set_cpi changes CPI of trackball.
/// Valid values are between 0 to 119, and the actual CPI value is the set
/// value +1 and multiplied by 100:
/// Valid values are 0 to 120. If it is 0, KEYBALL_CPI_DEFAULT will be used,
/// otherwise the actual CPI value will be the set value multiplied by 100:
///
/// CPI = (v + 1) * 100
/// CPI = v * 100
///
/// In addition, if you do not upload SROM, the maximum value will be limited
/// to 34 (3500CPI).
/// to 35 (3500CPI).
void keyball_set_cpi(uint8_t cpi);

0 comments on commit f73a4ff

Please sign in to comment.