summaryrefslogtreecommitdiff
path: root/keyboards/ploopyco/trackball_mini
diff options
context:
space:
mode:
authoralaviss <leorize+oss@disroot.org>2022-08-13 18:01:44 +0000
committerGitHub <noreply@github.com>2022-08-13 11:01:44 -0700
commitb1fe7621ebb086a519778030381eb5729e949523 (patch)
treed429fd6b14e1b3f6c4b6d14b267a956b99398893 /keyboards/ploopyco/trackball_mini
parent4c6ce12d2a671b4e4270648989b7c74ac2876882 (diff)
RFC: add a simple implementation of the ploopy optical encoder (#17912)
Diffstat (limited to 'keyboards/ploopyco/trackball_mini')
-rw-r--r--keyboards/ploopyco/trackball_mini/trackball_mini.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/ploopyco/trackball_mini/trackball_mini.c b/keyboards/ploopyco/trackball_mini/trackball_mini.c
index e4b4a47c2b..b6349ea459 100644
--- a/keyboards/ploopyco/trackball_mini/trackball_mini.c
+++ b/keyboards/ploopyco/trackball_mini/trackball_mini.c
@@ -111,10 +111,10 @@ void process_wheel(void) {
if (debug_encoder) dprintf("OPT1: %d, OPT2: %d\n", p1, p2);
- uint8_t dir = opt_encoder_handler(p1, p2);
+ int8_t dir = opt_encoder_handler(p1, p2);
if (dir == 0) return;
- encoder_update_kb(0, dir == 1);
+ encoder_update_kb(0, dir > 0);
}
void pointing_device_init_kb(void) {