2016-06-18 20:30:24 +02:00
|
|
|
/*
|
2017-03-29 00:20:36 +02:00
|
|
|
Copyright 2012-2016 Jun Wako <wakojun@gmail.com>
|
2016-06-18 20:30:24 +02: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 05:53:12 +01:00
|
|
|
#pragma once
|
2016-06-18 20:30:24 +02:00
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
2022-09-14 20:15:57 +02:00
|
|
|
#include "platform_deps.h"
|
2016-06-18 20:30:24 +02:00
|
|
|
#include "action.h"
|
|
|
|
#include "keycode.h"
|
|
|
|
#include "report.h"
|
|
|
|
#include "host.h"
|
|
|
|
#include "debug.h"
|
|
|
|
#include "keycode_config.h"
|
2022-03-09 09:29:00 +01:00
|
|
|
#include "gpio.h" // for pin_t
|
2016-06-18 20:30:24 +02:00
|
|
|
|
2016-12-29 08:28:48 +01:00
|
|
|
#include "quantum_keycodes.h"
|
|
|
|
|
|
|
|
// translates key to keycode
|
2016-06-18 20:30:24 +02: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 09:29:00 +01:00
|
|
|
|
|
|
|
#ifdef ENCODER_MAP_ENABLE
|
|
|
|
// Ensure we have a forward declaration for the encoder map
|
|
|
|
# include "encoder.h"
|
|
|
|
#endif
|
2022-06-05 02:26:02 +02:00
|
|
|
|
|
|
|
#include "keymap_introspection.h"
|