this locks like shit

Dependencies:   MenuLCD mbed

Fork of MenuLCD_copy by Vinícius Alves

menbed/include/menbedButtonEvent.h

Committer:
ViniR
Date:
2017-05-19
Revision:
0:92357d1220f3

File content as of revision 0:92357d1220f3:

#ifndef _MENBEDBUTTONEVENT_H_
#define _MENBEDBUTTONEVENT_H_

#include "mbed.h"

class MenbedButtonEvent {
public:
    enum ButtonName {
        ButtonSelect,
        ButtonDown,
        ButtonUp,
        ButtonCancel };
        
    enum ButtonAction {
        BUTTON_ACTION_PUSHED,
        BUTTON_ACTION_RELEASED_SHORT,
        BUTTON_ACTION_RELEASED_LONG,
        BUTTON_ACTION_HELD_LONG };
        
    ButtonName name;
    ButtonAction action;
    uint8_t numButtons;
};

#endif /* _MENBEDBUTTONEVENT_H_ */