~aleteoryx/muditaos

ref: 2276ceed679b93a3a891e4f5739ade9e13991c5a muditaos/module-gui/gui/widgets/KeyEvent.hpp -rw-r--r-- 1.2 KiB
2276ceed — Radoslaw Wicik [EGD-3743] Update copyrights in fies 5 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

///*
// * KeyEvent.hpp
// *
// *  Created on: 25 kwi 2019
// *      Author: robert
// */
//
//#ifndef GUI_WIDGETS_KEYEVENT_HPP_
//#define GUI_WIDGETS_KEYEVENT_HPP_
//
//#include <cstdint>
//
// namespace gui {
//
// enum class KeyCode {
//	KEY_LEFT,
//	KEY_UP,
//	KEY_RIGHT,
//	KEY_DOWN,
//	KEY_LF,
//	KEY_RF,
//	KEY_ENTER,
//	KEY_0,
//	KEY_1,
//	KEY_2,
//	KEY_3,
//	KEY_4,
//	KEY_5,
//	KEY_6,
//	KEY_7,
//	KEY_8,
//	KEY_9,
//	KEY_AST,
//	KEY_PND,
//	KEY_GREEN,
//	KEY_RED,
//	KEY_VOLUP,
//	KEY_VOLDN,
//	KEY_TORCH,
//	SWITCH_UP,
//	SWITCH_MID,
//	SWITCH_DN
//};
//
// enum class KeyState {
//	KEY_UNKNOWN         = 0x00,
//	KEY_PRESSED         = 0x01,
//    KEY_RELEASED_SHORT  = 0x02,
//    KEY_RELEASED_LONG   = 0x04,
//	KEY_CYCLE           = 0x08
//};
//
// class KeyEvent {
// public:
//	//defines mapped code of the pressed button
//	KeyCode keyCode;
//	//defines state of the button
//	KeyState keyState;
//	//defines how long button was pressed
//	uint32_t duration;
//
//	KeyEvent();
//	virtual ~KeyEvent();
//};
//
//} /* namespace gui */
//
//#endif /* GUI_WIDGETS_KEYEVENT_HPP_ */