aboutsummaryrefslogtreecommitdiffstats
path: root/src/hid.h
blob: 70467249346a8da24d043a0e6b317eb963d086c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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_CONSUMER,
	REPORT_ID_SYSTEM,
	REPORT_ID_MOUSE,
	REPORT_ID_GAMEPAD,
	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);