~aleteoryx/muditaos

ref: 8883bf2df5dc6c01103e5c638f14ab9c7a9ca38a muditaos/module-bsp/bsp/headset/headset_key_codes.hpp -rw-r--r-- 517 bytes
8883bf2d — Dawid Wojtas [BH-1717] Fix no clock update 2 years ago
                                                                                
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
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#include <cstdint>

namespace bsp {
 namespace headset {

    enum class HeadsetState : bool
    {
        NoChange = false,
        Changed
    };

    enum class KeyCode : uint8_t
    {
        Error = 0,
        Key1,
        Key2,
        Key3,
        Key4
    };

    enum class KeyEvent : uint8_t
    {
        KeyReleased = 0,
        KeyPressed,
        Error
    };
 }
}