forked from mirrors/qmk_userspace
Start moving towards introspection-based data retrieval (#18441)
This commit is contained in:
parent
8349ff1e8b
commit
cbbb45c13f
7 changed files with 54 additions and 24 deletions
|
@ -7,9 +7,19 @@
|
|||
// Get the number of layers defined in the keymap
|
||||
uint8_t keymap_layer_count(void);
|
||||
|
||||
// Get the keycode for the keymap location, stored in firmware rather than any other persistent storage
|
||||
uint16_t keycode_at_keymap_location_raw(uint8_t layer_num, uint8_t row, uint8_t column);
|
||||
// Get the keycode for the keymap location, potentially stored dynamically
|
||||
uint16_t keycode_at_keymap_location(uint8_t layer_num, uint8_t row, uint8_t column);
|
||||
|
||||
#if defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
|
||||
|
||||
// Get the number of layers defined in the encoder map
|
||||
uint8_t encodermap_layer_count(void);
|
||||
|
||||
// Get the keycode for the encoder mapping location, stored in firmware rather than any other persistent storage
|
||||
uint16_t keycode_at_encodermap_location_raw(uint8_t layer_num, uint8_t encoder_idx, bool clockwise);
|
||||
// Get the keycode for the encoder mapping location, potentially stored dynamically
|
||||
uint16_t keycode_at_encodermap_location(uint8_t layer_num, uint8_t encoder_idx, bool clockwise);
|
||||
|
||||
#endif // defined(ENCODER_ENABLE) && defined(ENCODER_MAP_ENABLE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue