from ClickEvent.hpp:34
class ClickEvent : public Event
{
public:
typedef enum
{
PRESSED,
RELEASED,
CANCEL
} ClickEventType;
ClickEvent(ClickEventType type, int16_t x, int16_t y, int16_t force = 0) :
_type(type), _x(x), _y(y), _force(force) { }
virtual ~ClickEvent() { }
int16_t getX() const
{
return _x;
}
int16_t getY() const
{
return _y;
}
void setX(int16_t x)
{
_x = x;
}
void setY(int16_t y)
{
_y = y;
}
void setType(ClickEventType type)
{
_type = type;
}
ClickEventType getType() const
{
return _type;
}
int16_t getForce() const
{
return _force;
}
virtual Event::EventType getEventType()
{
return Event::EVENT_CLICK;
}
private:
ClickEventType _type;
int16_t _x;
int16_t _y;
int16_t _force;
};