summaryrefslogtreecommitdiff
path: root/keyboards/ploopyco/mouse/mouse.c
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/mouse/mouse.c
parent4c6ce12d2a671b4e4270648989b7c74ac2876882 (diff)
RFC: add a simple implementation of the ploopy optical encoder (#17912)
Diffstat (limited to 'keyboards/ploopyco/mouse/mouse.c')
-rw-r--r--keyboards/ploopyco/mouse/mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/ploopyco/mouse/mouse.c b/keyboards/ploopyco/mouse/mouse.c
index 25ebd1ee2d..cde71205d0 100644
--- a/keyboards/ploopyco/mouse/mouse.c
+++ b/keyboards/ploopyco/mouse/mouse.c
@@ -111,7 +111,7 @@ void process_wheel(void) {
int dir = opt_encoder_handler(p1, p2);
if (dir == 0) return;
- encoder_update_kb(0, dir == 1);
+ encoder_update_kb(0, dir > 0);
}
report_mouse_t pointing_device_task_kb(report_mouse_t mouse_report) {