qmk_userspace/keyboards/lemokey/common/lemokey_common.h

65 lines
1.6 KiB
C

/* Copyright 2022~2024 @ 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_TASK_VIEW = QK_KB_0,
KC_FILE_EXPLORER,
KC_LOCK_SCREEN, // Lock screen
KC_MCTRL,
KC_LNPAD,
KC_LOPTN,
KC_ROPTN,
KC_LCMMD,
KC_RCMMD,
#ifdef LK_WIRELESS_ENABLE
BT_HST1,
BT_HST2,
BT_HST3,
P2P4G,
BAT_LVL,
__LK_WIRELESS_ENABLE_END = BAT_LVL,
#else
BT_HST1 = _______,
BT_HST2 = _______,
BT_HST3 = _______,
P2P4G = _______,
BAT_LVL = _______,
__LK_WIRELESS_ENABLE_END = KC_LOCK_SCREEN,
#endif
NEW_SAFE_RANGE = __LK_WIRELESS_ENABLE_END + 1,
};
#define KC_TASK KC_TASK_VIEW
#define KC_FILE KC_FILE_EXPLORER
#define KC_LOCK KC_LOCK_SCREEN
typedef struct PACKED {
uint8_t len;
uint8_t keycode[2];
} 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