aboutsummaryrefslogtreecommitdiff
path: root/quantum/encoder.h
diff options
context:
space:
mode:
authorXScorpion2 <rcalt2vt@gmail.com>2019-04-03 18:01:17 -0500
committerDrashna Jaelre <drashna@live.com>2019-04-03 16:01:17 -0700
commit63177760deaf23bb1f676974cecf211676285604 (patch)
treea0d60f4f55ef9632a20631c6f96b3f2e4e00367c /quantum/encoder.h
parent17e7762de7e3fdfc61c20aa61022f47370630c6a (diff)
downloadqmk_firmware-63177760deaf23bb1f676974cecf211676285604.tar.gz
qmk_firmware-63177760deaf23bb1f676974cecf211676285604.zip
Added encoder support to split common code (#5477)
* Added slave encoder support to split common * Fixing handwired/xealous/rev1 compile error * Removed unnecessary ifdef
Diffstat (limited to 'quantum/encoder.h')
-rw-r--r--quantum/encoder.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/quantum/encoder.h b/quantum/encoder.h
index 2024fa303..ec09a8cc4 100644
--- a/quantum/encoder.h
+++ b/quantum/encoder.h
@@ -19,11 +19,13 @@
19 19
20#include "quantum.h" 20#include "quantum.h"
21 21
22#define COUNTRECLOCKWISE 0
23#define CLOCKWISE 1
24
25void encoder_init(void); 22void encoder_init(void);
26void encoder_read(void); 23void encoder_read(void);
27 24
28void encoder_update_kb(int8_t index, bool clockwise); 25void encoder_update_kb(int8_t index, bool clockwise);
29void encoder_update_user(int8_t index, bool clockwise); 26void encoder_update_user(int8_t index, bool clockwise);
27
28#ifdef SPLIT_KEYBOARD
29void encoder_state_raw(uint8_t* slave_state);
30void encoder_update_raw(uint8_t* slave_state);
31#endif