from GestureEvent.hpp:34
class GestureEvent : public Event
{
public:
typedef enum
{
SWIPE_HORIZONTAL,
SWIPE_VERTICAL
} GestureType;
GestureEvent(GestureType t, int16_t v, int16_t x_coord, int16_t y_coord) :
type(t),
velocity(v),
x(x_coord),
y(y_coord)
{
}
int16_t getVelocity() const
{
return velocity;
}
GestureType getType() const
{
return type;
}
int16_t getX() const
{
return x;
}
int16_t getY() const
{
return y;
}
virtual Event::EventType getEventType()
{
return Event::EVENT_GESTURE;
}
private:
GestureEvent() { }
GestureType type;
int16_t velocity;
int16_t x;
int16_t y;
};