diff options
Diffstat (limited to 'keyboards/ploopyco/opt_encoder.h')
-rw-r--r-- | keyboards/ploopyco/opt_encoder.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/keyboards/ploopyco/opt_encoder.h b/keyboards/ploopyco/opt_encoder.h index 23a170d59..17c25bc86 100644 --- a/keyboards/ploopyco/opt_encoder.h +++ b/keyboards/ploopyco/opt_encoder.h | |||
@@ -28,33 +28,33 @@ | |||
28 | 28 | ||
29 | enum State { HIHI, HILO, LOLO, LOHI }; | 29 | enum State { HIHI, HILO, LOLO, LOHI }; |
30 | 30 | ||
31 | enum State state; | 31 | extern enum State state; |
32 | 32 | ||
33 | /* Variables used for scroll wheel functionality. */ | 33 | /* Variables used for scroll wheel functionality. */ |
34 | bool lohif; | 34 | extern bool lohif; |
35 | bool hilof; | 35 | extern bool hilof; |
36 | int lowA; | 36 | extern int lowA; |
37 | int highA; | 37 | extern int highA; |
38 | bool cLowA; | 38 | extern bool cLowA; |
39 | bool cHighA; | 39 | extern bool cHighA; |
40 | int lowIndexA; | 40 | extern int lowIndexA; |
41 | int highIndexA; | 41 | extern int highIndexA; |
42 | bool lowOverflowA; | 42 | extern bool lowOverflowA; |
43 | bool highOverflowA; | 43 | extern bool highOverflowA; |
44 | int lowB; | 44 | extern int lowB; |
45 | int highB; | 45 | extern int highB; |
46 | bool cLowB; | 46 | extern bool cLowB; |
47 | bool cHighB; | 47 | extern bool cHighB; |
48 | int lowIndexB; | 48 | extern int lowIndexB; |
49 | int highIndexB; | 49 | extern int highIndexB; |
50 | bool lowOverflowB; | 50 | extern bool lowOverflowB; |
51 | bool highOverflowB; | 51 | extern bool highOverflowB; |
52 | int scrollThresholdA; | 52 | extern int scrollThresholdA; |
53 | int scrollThresholdB; | 53 | extern int scrollThresholdB; |
54 | int arLowA[SCROLLER_AR_SIZE]; | 54 | extern int arLowA[SCROLLER_AR_SIZE]; |
55 | int arHighA[SCROLLER_AR_SIZE]; | 55 | extern int arHighA[SCROLLER_AR_SIZE]; |
56 | int arLowB[SCROLLER_AR_SIZE]; | 56 | extern int arLowB[SCROLLER_AR_SIZE]; |
57 | int arHighB[SCROLLER_AR_SIZE]; | 57 | extern int arHighB[SCROLLER_AR_SIZE]; |
58 | 58 | ||
59 | void calculateThresholdA(int curA); | 59 | void calculateThresholdA(int curA); |
60 | void calculateThresholdB(int curB); | 60 | void calculateThresholdB(int curB); |