diff options
author | Andrew Kannan <andrew.kannan@klaviyo.com> | 2019-09-18 20:41:46 -0400 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-09-18 17:41:46 -0700 |
commit | e5aa28455ec6c377cc9117b07dfa7d3951e6d610 (patch) | |
tree | 0bf2ff0faf5864b1e062adb609dbaf63df1aa240 /keyboards/cannonkeys/satisfaction75/satisfaction75.h | |
parent | 6f5f943bb91185e9dacc499fcc97550348223e90 (diff) |
[Keyboard] 201909 s75 custom encoder (#6745)
* Handle custom encoder configuration
* Whitespace changes
* Undo broken stuff
* more
* Remove printfs
* fix the dumb bug
Diffstat (limited to 'keyboards/cannonkeys/satisfaction75/satisfaction75.h')
-rw-r--r-- | keyboards/cannonkeys/satisfaction75/satisfaction75.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction75.h b/keyboards/cannonkeys/satisfaction75/satisfaction75.h index dfab68017f..188a1d4970 100644 --- a/keyboards/cannonkeys/satisfaction75/satisfaction75.h +++ b/keyboards/cannonkeys/satisfaction75/satisfaction75.h @@ -47,6 +47,12 @@ enum encoder_modes { ENC_MODE_CLOCK_SET // This shouldn't be included in the default modes, so we put it after NUM_ENCODER_MODES }; +enum custom_encoder_behavior { + ENC_CUSTOM_CW = 0, + ENC_CUSTOM_CCW, + ENC_CUSTOM_PRESS +}; + enum oled_modes { OLED_DEFAULT, OLED_TIME, @@ -96,6 +102,8 @@ void change_encoder_mode(bool negative); uint16_t handle_encoder_clockwise(void); uint16_t handle_encoder_ccw(void); uint16_t handle_encoder_press(void); +uint16_t retrieve_custom_encoder_config(uint8_t encoder_idx, uint8_t behavior); +void set_custom_encoder_config(uint8_t encoder_idx, uint8_t behavior, uint16_t new_code); void update_time_config(int8_t increment); |