eventhandler: add class #6
This commit is contained in:
@@ -8,10 +8,22 @@
|
||||
#ifndef EVENTHANDLER_H_
|
||||
#define EVENTHANDLER_H_
|
||||
|
||||
#include "DigitalIoPin.h"
|
||||
|
||||
typedef struct _EVENT_HANDL{
|
||||
DigitalIoPin * _button_control_up;
|
||||
DigitalIoPin * _button_control_down;
|
||||
DigitalIoPin * _button_control_toggle_mode;
|
||||
DigitalIoPin * _button_control_toggle_active;
|
||||
} EVENT_HANDL;
|
||||
|
||||
class EventHandler {
|
||||
public:
|
||||
EventHandler();
|
||||
EventHandler(EVENT_HANDL * btns);
|
||||
virtual ~EventHandler();
|
||||
private:
|
||||
EVENT_HANDL = {0,0,0,0};
|
||||
|
||||
};
|
||||
|
||||
#endif /* EVENTHANDLER_H_ */
|
||||
|
||||
Reference in New Issue
Block a user