keychron_qmk_firmware/keyboards/keychron/common/Backup 1 of keychron_common.h

76 lines
1.7 KiB
C

/* Copyright 2023 @ Keychron (https://www.lemokey.com)
*
* 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/>.
*/
#pragma once
#include "stdint.h"
// clang-format off
enum {
KC_LOPTN = QK_KB_0,
KC_ROPTN,
KC_LCMMD,
KC_RCMMD,
KC_MCTRL,
KC_LNPAD,
KC_TASK_VIEW,
KC_FILE_EXPLORER,
KC_SCREEN_SHOT,
KC_CORTANA,
KC_SIRI,
#ifdef LK_WIRELESS_ENABLE
BT_HST1,
BT_HST2,
BT_HST3,
P2P4G,
BAT_LVL,
#else
BT_HST1 = _______,
BT_HST2 = _______,
BT_HST3 = _______,
P2P4G = _______,
BAT_LVL = _______,
#endif
#ifdef DANANLOG_MATRIX
PROF1,
PROF2,
PROF3,
#else
PROF1 = _______,
PROF2 = _______,
PROF3 = _______,
#endif
NEW_SAFE_RANGE,
};
#define KC_TASK KC_TASK_VIEW
#define KC_FILE KC_FILE_EXPLORER
#define KC_SNAP KC_SCREEN_SHOT
#define KC_CTANA KC_CORTANA
typedef struct PACKED {
uint8_t len;
uint8_t keycode[3];
} key_combination_t;
bool process_record_lemokey_common(uint16_t keycode, keyrecord_t *record);
void lemokey_common_task(void);
#ifdef ENCODER_ENABLE
void encoder_cb_init(void);
#endif