28 lines
401 B
C++
28 lines
401 B
C++
//
|
|
// Created by jedi on 11/6/18.
|
|
//
|
|
|
|
#ifndef MGL_DMXMENU_INPUT_H
|
|
#define MGL_DMXMENU_INPUT_H
|
|
|
|
|
|
|
|
#define I_LEFT 0
|
|
#define I_RIGHT 1
|
|
#define I_UP 2
|
|
#define I_DOWN 3
|
|
|
|
|
|
class buttons {
|
|
private:
|
|
void onPush(int id, bool state);
|
|
public:
|
|
bool raw[4]={false,false, false, false};
|
|
bool last[4]={false,false, false, false};
|
|
void poll();
|
|
};
|
|
|
|
|
|
extern buttons input;
|
|
|
|
#endif //MGL_DMXMENU_INPUT_H
|