libPocuter 1.0 Support library for programming the Pocuter

PocuterButtons.h
Go to the documentation of this file.
1 #ifndef POCUTERBUTTONS_H
2 #define POCUTERBUTTONS_H
3
4
10 class PocuterButtons {
11 public:
12 enum PBUTTONS {
13 BUTTON_1=0x01,
14 BUTTON_2=0x02,
15 BUTTON_3=0x04
16 };
17
18 typedef void (buttonEventHandler)(PBUTTONS, void*);
30 virtual void registerEventHandler(buttonEventHandler* e, void* u) = 0;
31
37 virtual void unregisterEventHandler() = 0;
45 virtual PBUTTONS getButtonState() = 0;
46
47 private:
48
49 };
50
51 #endif /* POCUTERBUTTONS_H */
52
PocuterButtons::getButtonState
virtual PBUTTONS getButtonState()=0
get the current state of the buttons
PocuterButtons::buttonEventHandler
void() buttonEventHandler(PBUTTONS, void *)
Definition: PocuterButtons.h:18
PocuterButtons::registerEventHandler
virtual void registerEventHandler(buttonEventHandler *e, void *u)=0
register an event callback
PocuterButtons::BUTTON_3
@ BUTTON_3
Definition: PocuterButtons.h:15
PocuterButtons::unregisterEventHandler
virtual void unregisterEventHandler()=0
unregister the event handler
PocuterButtons::BUTTON_2
@ BUTTON_2
Definition: PocuterButtons.h:14
PocuterButtons
options to access the Pocuter buttons
Definition: PocuterButtons.h:10
PocuterButtons::BUTTON_1
@ BUTTON_1
Definition: PocuterButtons.h:13
PocuterButtons::PBUTTONS
PBUTTONS
Definition: PocuterButtons.h:12