From 4ff7319d1679989c9a6da6f5e2cb211fc5af46ce Mon Sep 17 00:00:00 2001 From: Yoichi NAKAYAMA Date: Mon, 14 Oct 2024 09:18:29 +0900 Subject: [PATCH] Fix description of cpi accessors --- qmk_firmware/keyboards/keyball/lib/keyball/keyball.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qmk_firmware/keyboards/keyball/lib/keyball/keyball.h b/qmk_firmware/keyboards/keyball/lib/keyball/keyball.h index 32003a846..9f201d4ff 100644 --- a/qmk_firmware/keyboards/keyball/lib/keyball/keyball.h +++ b/qmk_firmware/keyboards/keyball/lib/keyball/keyball.h @@ -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);