DSPointer::~DSPointer()
{}
+/*LCOV_EXCL_START*/
void DSPointer::processEvent(DSInputMouseEvent *ev, void *data)
{
//TODO : get ptrFocus and send event to it via DSWaylandPointer instance
return;
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSPointer::mouseDown(uint32_t button)
{
if (__ptrFocus && __dswlPointer)
__dswlPointer->sendButtonDown(button);
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSPointer::mouseUp(uint32_t button)
{
if (__ptrFocus && __dswlPointer)
__dswlPointer->sendButtonUp(button);
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSPointer::mouseMove(int x, int y)
{
if (__ptrFocus && __dswlPointer)
__dswlPointer->sendMotion(x, y);
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSPointer::mouseIn(int x, int y)
{
if (__dswlPointer)
__dswlPointer->sendEnter(x, y);
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSPointer::mouseOut()
{
if (__dswlPointer)
__dswlPointer->sendLeave();
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSPointer::setFocus(std::shared_ptr<DSWindow> window)
{
if (!window)
__dswlPointer->setFocus(waylandSurface);
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSPointer::resetFocus()
{
if (__ptrFocus)
if (__dswlPointer)
__dswlPointer->resetFocus();
}
+/*LCOV_EXCL_STOP*/
std::shared_ptr<DSWindow> DSPointer::getFocus()
{