proper Key init

This commit is contained in:
Raphael Coeffic
2021-04-08 00:31:08 +02:00
parent 15fbc2272f
commit e2a1abe625
+3 -3
View File
@@ -155,9 +155,9 @@ inline bool IS_KEY_EVT(event_t evt, uint8_t key)
class Key
{
private:
uint8_t m_vals;
uint8_t m_cnt;
uint8_t m_state;
uint8_t m_vals = 0;
uint8_t m_cnt = 0;
uint8_t m_state = 0;
public:
void input(bool val);
bool state() const { return m_vals > 0; }