summaryrefslogtreecommitdiff
path: root/app/include/zmk/events/sensor-event.h
blob: 9bff0a90eb57bbdda6832a51dacc6457cb1b2068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2020 Peter Johanson <peter@peterjohanson.com>
 *
 * SPDX-License-Identifier: MIT
 */

#pragma once

#include <zephyr.h>
#include <zmk/event-manager.h>
#include <drivers/sensor.h>

struct sensor_event {
    struct zmk_event_header header;
    u8_t sensor_number;
    struct sensor_value value;
};

ZMK_EVENT_DECLARE(sensor_event);