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