2020-10-18 00:46:57 +06:00
|
|
|
/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.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/>.
|
|
|
|
*/
|
|
|
|
|
2018-12-05 03:27:41 +06:00
|
|
|
#pragma once
|
|
|
|
#include "drashna.h"
|
|
|
|
|
2019-07-23 09:22:33 +06:00
|
|
|
// define diablo macro timer variables
|
2018-06-01 11:11:06 +06:00
|
|
|
extern uint8_t diablo_times[];
|
2019-05-07 11:34:09 +06:00
|
|
|
typedef struct {
|
|
|
|
uint16_t timer;
|
2019-07-23 09:22:33 +06:00
|
|
|
uint8_t key_interval;
|
|
|
|
uint8_t keycode;
|
2019-05-07 11:34:09 +06:00
|
|
|
} diablo_timer_t;
|
2018-06-01 11:11:06 +06:00
|
|
|
|
2019-07-23 09:22:33 +06:00
|
|
|
typedef struct {
|
|
|
|
uint8_t index;
|
|
|
|
uint8_t keycode;
|
|
|
|
} diable_keys_t;
|
|
|
|
|
|
|
|
extern diablo_timer_t diablo_timer[];
|
2018-06-01 11:11:06 +06:00
|
|
|
|
|
|
|
void run_diablo_macro_check(void);
|
2018-12-05 03:27:41 +06:00
|
|
|
|
|
|
|
#ifdef TAP_DANCE_ENABLE
|
|
|
|
enum {
|
2019-05-07 11:34:09 +06:00
|
|
|
TD_D3_1 = 0,
|
|
|
|
TD_D3_2,
|
|
|
|
TD_D3_3,
|
2021-07-27 06:59:49 +06:00
|
|
|
TD_D3_4,
|
2018-12-05 03:27:41 +06:00
|
|
|
};
|
2021-07-27 06:59:49 +06:00
|
|
|
#endif // TAP_DANCE_ENABLE
|