diff options
author | alaviss <leorize+oss@disroot.org> | 2022-08-13 18:01:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 11:01:44 -0700 |
commit | b1fe7621ebb086a519778030381eb5729e949523 (patch) | |
tree | d429fd6b14e1b3f6c4b6d14b267a956b99398893 /keyboards/ploopyco/trackball | |
parent | 4c6ce12d2a671b4e4270648989b7c74ac2876882 (diff) | |
download | qmk_firmware-b1fe7621ebb086a519778030381eb5729e949523.tar.gz qmk_firmware-b1fe7621ebb086a519778030381eb5729e949523.zip |
RFC: add a simple implementation of the ploopy optical encoder (#17912)
Diffstat (limited to 'keyboards/ploopyco/trackball')
-rw-r--r-- | keyboards/ploopyco/trackball/trackball.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/ploopyco/trackball/trackball.c b/keyboards/ploopyco/trackball/trackball.c index bda21b5c88..0b5f313ba6 100644 --- a/keyboards/ploopyco/trackball/trackball.c +++ b/keyboards/ploopyco/trackball/trackball.c @@ -112,7 +112,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) { |