2016-06-19 02:30:24 +08:00
|
|
|
/*
|
2017-03-29 06:20:36 +08:00
|
|
|
Copyright 2012-2016 Jun Wako <wakojun@gmail.com>
|
2016-06-19 02:30:24 +08:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-12-26 12:53:12 +08:00
|
|
|
#pragma once
|
2016-06-19 02:30:24 +08:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2022-09-15 02:15:57 +08:00
|
|
|
#include "platform_deps.h"
|
2016-06-19 02:30:24 +08:00
|
|
|
#include "action.h"
|
|
|
|
#include "keycode.h"
|
|
|
|
#include "report.h"
|
|
|
|
#include "host.h"
|
|
|
|
#include "debug.h"
|
|
|
|
#include "keycode_config.h"
|
2022-03-09 16:29:00 +08:00
|
|
|
#include "gpio.h" // for pin_t
|
2016-06-19 02:30:24 +08:00
|
|
|
|
2016-12-29 15:28:48 +08:00
|
|
|
#include "quantum_keycodes.h"
|
|
|
|
|
|
|
|
// translates key to keycode
|
2016-06-19 02:30:24 +08:00
|
|
|
uint16_t keymap_key_to_keycode(uint8_t layer, keypos_t key);
|
|
|
|
|
|
|
|
extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS];
|
2022-03-09 16:29:00 +08:00
|
|
|
|
|
|
|
#ifdef ENCODER_MAP_ENABLE
|
|
|
|
// Ensure we have a forward declaration for the encoder map
|
|
|
|
# include "encoder.h"
|
|
|
|
#endif
|
2022-06-05 08:26:02 +08:00
|
|
|
|
|
|
|
#include "keymap_introspection.h"
|