aboutsummaryrefslogtreecommitdiffstats
path: root/src/hid.h
blob: e455c806d53eb2abe12e6606d03e4dc6a7c8a45f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "keymat.h"

#include <stdbool.h>
#include <stdint.h>

#define REPORT_ID_MIN REPORT_ID_KEYBOARD
enum {
	REPORT_ID_KEYBOARD = 1,
	REPORT_ID_MOUSE,
	REPORT_ID_CONSUMER_CONTROL,
	REPORT_ID_MAX
};

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_task(void);