diff options
| author | Wilba6582 <Wilba6582@users.noreply.github.com> | 2018-09-28 14:09:14 +1000 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2018-09-28 00:09:14 -0400 |
| commit | a173eda6d28bd09b2d59448a6532edb7a6c8e358 (patch) | |
| tree | d8f1f40684eaf4dad48502fc75cd383d53b34011 /quantum/dynamic_keymap.h | |
| parent | b382076ad1a6d857b6f185077b5f3635801b4ad6 (diff) | |
| download | qmk_firmware-a173eda6d28bd09b2d59448a6532edb7a6c8e358.tar.gz qmk_firmware-a173eda6d28bd09b2d59448a6532edb7a6c8e358.zip | |
Improved dynamic keymaps (#3972)
* Improved dynamic keymaps
* K&R sucks
Diffstat (limited to 'quantum/dynamic_keymap.h')
| -rw-r--r-- | quantum/dynamic_keymap.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/quantum/dynamic_keymap.h b/quantum/dynamic_keymap.h index b0133aeb8..bd76adae2 100644 --- a/quantum/dynamic_keymap.h +++ b/quantum/dynamic_keymap.h | |||
| @@ -13,9 +13,7 @@ | |||
| 13 | * You should have received a copy of the GNU General Public License | 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | 16 | #pragma once | |
| 17 | #ifndef DYNAMIC_KEYMAP_H | ||
| 18 | #define DYNAMIC_KEYMAP_H | ||
| 19 | 17 | ||
| 20 | #include <stdint.h> | 18 | #include <stdint.h> |
| 21 | #include <stdbool.h> | 19 | #include <stdbool.h> |
| @@ -23,9 +21,8 @@ | |||
| 23 | void *dynamic_keymap_key_to_eeprom_address(uint8_t layer, uint8_t row, uint8_t column); | 21 | void *dynamic_keymap_key_to_eeprom_address(uint8_t layer, uint8_t row, uint8_t column); |
| 24 | uint16_t dynamic_keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t column); | 22 | uint16_t dynamic_keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t column); |
| 25 | void dynamic_keymap_set_keycode(uint8_t layer, uint8_t row, uint8_t column, uint16_t keycode); | 23 | void dynamic_keymap_set_keycode(uint8_t layer, uint8_t row, uint8_t column, uint16_t keycode); |
| 26 | void dynamic_keymap_clear_all(void); | 24 | void dynamic_keymap_reset(void); |
| 27 | 25 | ||
| 28 | // This overrides the one in quantum/keymap_common.c | 26 | // This overrides the one in quantum/keymap_common.c |
| 29 | // uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key); | 27 | // uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key); |
| 30 | 28 | ||
| 31 | #endif //DYNAMIC_KEYMAP_H | ||
