summaryrefslogtreecommitdiff
path: root/src/handlers.c
blob: 9383e758191c55ea260f39fd30f371e16a23c26e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "handlers.h"

#include "endpoints.h"

__attribute__((weak)) bool zmk_handle_key_user(struct zmk_key_event *key_event)
{
	return true;
};

void zmk_handle_key(struct zmk_key_event key_event)
{
	if (!zmk_handle_key_user(&key_event))
	{
		return;
	}

	zmk_endpoints_send_key_event(key_event);
};