DSTouch::~DSTouch()
{}
+/*LCOV_EXCL_START*/
void DSTouch::processEvent(DSInputTouchEvent *ev, void *data)
{
//TODO : get touchFocus and send event to it via DSWaylandTouch instance
touchMove(ev->getIndex(), ev->getWinX(), ev->getWinY());
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSTouch::touchDown(int32_t id, int x, int y)
{
if (__touchFocus && __dswlTouch)
__dswlTouch->sendDown(id, x, y);
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSTouch::touchUp(int32_t id)
{
if (__touchFocus && __dswlTouch)
__dswlTouch->sendUp(id);
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSTouch::touchMove(int32_t id, int x, int y)
{
if (__touchFocus && __dswlTouch)
__dswlTouch->sendMotion(id, x, y);
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSTouch::setFocus(std::shared_ptr<DSWindow> window)
{
if (!window)
__dswlTouch->setFocus(waylandSurface);
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSTouch::resetFocus()
{
if (__touchFocus)
if (__dswlTouch)
__dswlTouch->resetFocus();
}
+/*LCOV_EXCL_STOP*/
std::shared_ptr<DSWindow> DSTouch::getFocus()
{