4 errors
Dependencies: KS0108_PCF8574 mbed
menbed/include/menbedButtonEvent.h@0:936f1c020120, 2012-09-05 (annotated)
- Committer:
- GuiTwo
- Date:
- Wed Sep 05 07:21:59 2012 +0000
- Revision:
- 0:936f1c020120
With KS0108;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
GuiTwo | 0:936f1c020120 | 1 | #ifndef _MENBEDBUTTONEVENT_H_ |
GuiTwo | 0:936f1c020120 | 2 | #define _MENBEDBUTTONEVENT_H_ |
GuiTwo | 0:936f1c020120 | 3 | |
GuiTwo | 0:936f1c020120 | 4 | #include "mbed.h" |
GuiTwo | 0:936f1c020120 | 5 | |
GuiTwo | 0:936f1c020120 | 6 | class MenbedButtonEvent { |
GuiTwo | 0:936f1c020120 | 7 | public: |
GuiTwo | 0:936f1c020120 | 8 | enum ButtonName { |
GuiTwo | 0:936f1c020120 | 9 | ButtonSelect, |
GuiTwo | 0:936f1c020120 | 10 | ButtonDown, |
GuiTwo | 0:936f1c020120 | 11 | ButtonUp, |
GuiTwo | 0:936f1c020120 | 12 | ButtonCancel }; |
GuiTwo | 0:936f1c020120 | 13 | |
GuiTwo | 0:936f1c020120 | 14 | enum ButtonAction { |
GuiTwo | 0:936f1c020120 | 15 | BUTTON_ACTION_PUSHED, |
GuiTwo | 0:936f1c020120 | 16 | BUTTON_ACTION_RELEASED_SHORT, |
GuiTwo | 0:936f1c020120 | 17 | BUTTON_ACTION_RELEASED_LONG, |
GuiTwo | 0:936f1c020120 | 18 | BUTTON_ACTION_HELD_LONG }; |
GuiTwo | 0:936f1c020120 | 19 | |
GuiTwo | 0:936f1c020120 | 20 | ButtonName name; |
GuiTwo | 0:936f1c020120 | 21 | ButtonAction action; |
GuiTwo | 0:936f1c020120 | 22 | uint8_t numButtons; |
GuiTwo | 0:936f1c020120 | 23 | }; |
GuiTwo | 0:936f1c020120 | 24 | |
GuiTwo | 0:936f1c020120 | 25 | #endif /* _MENBEDBUTTONEVENT_H_ */ |