/**
* @fn virtual void Drawable::handleDragEvent(const DragEvent& evt)
*
* @brief Defines the event handler interface for DragEvents.
*
* Defines the event handler interface for DragEvents. The event is only received if
* the drawable is touchable.
*
* @param evt The DragEvent received from the HAL.
*/
virtual void handleDragEvent(const DragEvent& evt) { }
Concretely, in your view (having declared handleDragEvent() in MyView.hpp) - Something like this:
void MyView::handleDragEvent(const DragEvent& evt)
{
drag_x = evt.getDeltaX();
if(drag_x < drag_threshhold)
{
View::handleDragEvent(evt);
}
}
/Martin