aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ploopyco/opt_encoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ploopyco/opt_encoder.c')
-rw-r--r--keyboards/ploopyco/opt_encoder.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/keyboards/ploopyco/opt_encoder.c b/keyboards/ploopyco/opt_encoder.c
index 44bcd5eb8..8698351c2 100644
--- a/keyboards/ploopyco/opt_encoder.c
+++ b/keyboards/ploopyco/opt_encoder.c
@@ -16,6 +16,34 @@
16 */ 16 */
17#include "opt_encoder.h" 17#include "opt_encoder.h"
18 18
19enum State state;
20
21/* Variables used for scroll wheel functionality. */
22bool lohif;
23bool hilof;
24int lowA;
25int highA;
26bool cLowA;
27bool cHighA;
28int lowIndexA;
29int highIndexA;
30bool lowOverflowA;
31bool highOverflowA;
32int lowB;
33int highB;
34bool cLowB;
35bool cHighB;
36int lowIndexB;
37int highIndexB;
38bool lowOverflowB;
39bool highOverflowB;
40int scrollThresholdA;
41int scrollThresholdB;
42int arLowA[SCROLLER_AR_SIZE];
43int arHighA[SCROLLER_AR_SIZE];
44int arLowB[SCROLLER_AR_SIZE];
45int arHighB[SCROLLER_AR_SIZE];
46
19/* Setup function for the scroll wheel. Initializes 47/* Setup function for the scroll wheel. Initializes
20 the relevant variables. */ 48 the relevant variables. */
21void opt_encoder_init(void) { 49void opt_encoder_init(void) {