diff options
author | Nick Brassel <nick@tzarc.org> | 2021-01-20 00:18:11 +1100 |
---|---|---|
committer | Nick Brassel <nick@tzarc.org> | 2021-01-20 00:18:11 +1100 |
commit | d668fd3977c46bd5c9a5c50ce77ac86c85cc18ed (patch) | |
tree | 2ec8d5fe87f68c0eff23926305d020f94b5b4b61 /keyboards/ploopyco/opt_encoder.c | |
parent | 6b0ed6a29b306bad8c1a8a55e45452b828109793 (diff) | |
parent | d24fe4f1ca49b2143b3f3d260a0a63088b521673 (diff) |
Merge remote-tracking branch 'upstream/master' into develop
Diffstat (limited to 'keyboards/ploopyco/opt_encoder.c')
-rw-r--r-- | keyboards/ploopyco/opt_encoder.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/keyboards/ploopyco/opt_encoder.c b/keyboards/ploopyco/opt_encoder.c index 44bcd5eb88..8698351c26 100644 --- a/keyboards/ploopyco/opt_encoder.c +++ b/keyboards/ploopyco/opt_encoder.c @@ -16,6 +16,34 @@ */ #include "opt_encoder.h" +enum State state; + +/* Variables used for scroll wheel functionality. */ +bool lohif; +bool hilof; +int lowA; +int highA; +bool cLowA; +bool cHighA; +int lowIndexA; +int highIndexA; +bool lowOverflowA; +bool highOverflowA; +int lowB; +int highB; +bool cLowB; +bool cHighB; +int lowIndexB; +int highIndexB; +bool lowOverflowB; +bool highOverflowB; +int scrollThresholdA; +int scrollThresholdB; +int arLowA[SCROLLER_AR_SIZE]; +int arHighA[SCROLLER_AR_SIZE]; +int arLowB[SCROLLER_AR_SIZE]; +int arHighB[SCROLLER_AR_SIZE]; + /* Setup function for the scroll wheel. Initializes the relevant variables. */ void opt_encoder_init(void) { |