Danbias/Code/Misc/EventHandler/IEventButton.h

35 lines
558 B
C
Raw Normal View History

2014-01-31 15:38:12 +01:00
#ifndef MISC_IEVENT_BUTTON
#define MISC_IEVENT_BUTTON
#include "../../Input/L_inputClass.h"
namespace Oyster
{
namespace Event
{
class IEventButton
{
2014-01-31 15:38:12 +01:00
public:
enum ButtonState
{
Button_Clicked,
Button_Hover,
Button_Hold,
Button_Smashed,
};
2014-01-31 15:38:12 +01:00
virtual void CheckCollision(InputClass *input) = 0;
virtual void SendEvent(IEventButton::ButtonState state) = 0;
2014-01-31 15:38:12 +01:00
struct ButtonEvent;
virtual void SetEventFunc(void (*EventFunc)( ButtonEvent e )) = 0;
virtual unsigned int GetID() = 0;
};
}
2014-01-31 15:38:12 +01:00
}
#endif