micromenu/inc/buttons.h
2021-02-24 20:37:27 +01:00

31 lines
476 B
C++

//
// Created by jedi on 11/6/18.
//
#pragma once
namespace micromenu {
enum direction {
I_LEFT = 0,
I_RIGHT,
I_UP,
I_DOWN
};
class buttons {
private:
static void onPush(direction id, bool state);
public:
bool raw[4] = {false, false, false, false};
bool last[4] = {false, false, false, false};
void poll();
};
extern buttons input;
}