[Keyboard] Ploopy improvements (#15348)

This commit is contained in:
Drashna Jaelre
2021-11-29 08:23:29 -08:00
committed by GitHub
parent 285afa3a8a
commit 62e01928cd
9 changed files with 109 additions and 44 deletions

View File

@@ -29,16 +29,16 @@
#define OPT_ENC1_MUX 0
#define OPT_ENC2_MUX 4
void process_wheel(report_mouse_t* mouse_report);
void process_wheel(void);
#define LAYOUT(BL, BM, BR, BF, BB) \
{ {BL, BM, BR, BF, BB}, }
typedef union {
uint32_t raw;
struct {
uint8_t dpi_config;
};
uint32_t raw;
struct {
uint8_t dpi_config;
};
} keyboard_config_t;
extern keyboard_config_t keyboard_config;
@@ -56,3 +56,6 @@ enum ploopy_keycodes {
PLOOPY_SAFE_RANGE,
#endif
};
bool encoder_update_user(uint8_t index, bool clockwise);
bool encoder_update_kb(uint8_t index, bool clockwise);