blob: 64536e33f3b886bbe5dc38d4c5f1072413338ccc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#pragma once
#include "keymat.h"
#include <stdbool.h>
#include <stdint.h>
#define MACRO_HOLD_MAX 32
#define REPORT_ID_NONE 0
#define REPORT_ID_MIN 1
enum {
REPORT_ID_CONSUMER = REPORT_ID_MIN,
REPORT_ID_SYSTEM,
REPORT_ID_MOUSE,
REPORT_ID_GAMEPAD,
REPORT_ID_MAX
};
enum {
INST_HID_KBD,
INST_HID_MISC
};
void hid_init(void);
void hid_force_release(uint x, uint y);
void hid_switch_layer_with_key(uint8_t layer, uint x, uint y);
void hid_send_macro(const uint32_t *keysyms, uint cnt);
void hid_task(void);
|