diff options
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 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 | ||
19 | enum State state; | ||
20 | |||
21 | /* Variables used for scroll wheel functionality. */ | ||
22 | bool lohif; | ||
23 | bool hilof; | ||
24 | int lowA; | ||
25 | int highA; | ||
26 | bool cLowA; | ||
27 | bool cHighA; | ||
28 | int lowIndexA; | ||
29 | int highIndexA; | ||
30 | bool lowOverflowA; | ||
31 | bool highOverflowA; | ||
32 | int lowB; | ||
33 | int highB; | ||
34 | bool cLowB; | ||
35 | bool cHighB; | ||
36 | int lowIndexB; | ||
37 | int highIndexB; | ||
38 | bool lowOverflowB; | ||
39 | bool highOverflowB; | ||
40 | int scrollThresholdA; | ||
41 | int scrollThresholdB; | ||
42 | int arLowA[SCROLLER_AR_SIZE]; | ||
43 | int arHighA[SCROLLER_AR_SIZE]; | ||
44 | int arLowB[SCROLLER_AR_SIZE]; | ||
45 | int 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. */ |
21 | void opt_encoder_init(void) { | 49 | void opt_encoder_init(void) { |