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