From b02e14ecdfa42c2c9e0e2bbb4635a1b4b8651c33 Mon Sep 17 00:00:00 2001 From: 4yn <4yn@users.noreply.github.com> Date: Fri, 29 Jul 2022 19:46:34 +0800 Subject: [PATCH] fix hori slider output order --- src-slider_io/src/output/hori.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-slider_io/src/output/hori.rs b/src-slider_io/src/output/hori.rs index 119b804..17763fa 100644 --- a/src-slider_io/src/output/hori.rs +++ b/src-slider_io/src/output/hori.rs @@ -91,7 +91,7 @@ impl OutputHandler for HoriOutput { .fold(0, |axis, (idx, state)| { axis | match state { - true => 0b11 << ((15 - idx) * 2), + true => 0b11 << ((idx ^ 3) * 2), false => 0, } })