1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
30
31
32
33
40
43
44
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
75
76
77
78
79
80
/* ... */
#ifndef BUTTONCONTROLLER_HPP
#define BUTTONCONTROLLER_HPP
#include <touchgfx/hal/Types.hpp>
namespace touchgfx
{
/* ... */
class ButtonController
{
public:
/* ... */
virtual ~ButtonController()
{
}{ ... }
/* ... */
virtual void init() = 0;
/* ... */
virtual bool sample(uint8_t& key) = 0;
/* ... */
virtual void reset() {}
public:}...;
...}
/* ... */
#endif