}
}
+/*LCOV_EXCL_START*/
void DSSeat::slotDeviceRemove(std::shared_ptr<DSInputDevice> device)
{
DSLOG_INF("DSSeat", "");
if (capNeedUpdate)
__dswlSeat->setCapability((DSWaylandSeat::seatCapability)cap);
}
+/*LCOV_EXCL_STOP*/
void DSSeat::addPointer()
{
__numPointer++;
}
+/*LCOV_EXCL_START*/
void DSSeat::addKeyboard()
{
if (0 < __numKeyboard)
__numKeyboard++;
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSSeat::addTouch()
{
if (0 < __numTouch)
__numTouch++;
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSSeat::removePointer()
{
if (0 >= __numPointer)
__pointer = nullptr;
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSSeat::removeKeyboard()
{
if (0 >= __numKeyboard)
__keyboard = nullptr;
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSSeat::removeTouch()
{
if (0 >= __numTouch)
__touch = nullptr;
}
}
+/*LCOV_EXCL_STOP*/
bool DSSeat::hasPointer()
{
return __dswlSeat->getName();
}
+/*LCOV_EXCL_START*/
void DSSeat::__onKeyEvent(DSInputKeyboardEvent *ev)
{
if (__keyboard == nullptr)
__dswlSeat->setCurrentEventTime(ev->getTimestamp());
__keyboard->processEvent(ev, nullptr);
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSSeat::__onPointerEvent(DSInputMouseEvent *ev)
{
if (__pointer == nullptr)
__pointer->processEvent(ev, nullptr);
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSSeat::__onTouchEvent(DSInputTouchEvent *ev)
{
int winX;
__dswlSeat->setCurrentEventTime(ev->getTimestamp());
__touch->processEvent(ev, nullptr);
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSSeat::__onWindowStackChanged(std::shared_ptr<DSWindow> topWindow)
{
__stackChanged = true;
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSSeat::__onWindowCreated(std::shared_ptr<DSWindow> window)
{
DSLOG_INF("DSSeat", "window created : %p (%p)", window, window.get());
}
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
void DSSeat::__onWindowDestroy(std::shared_ptr<DSWindow> window)
{
DSLOG_INF("DSSeat", "window destroy : %p (%p)", window, window.get());
}
}
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
Eina_Bool DSSeat::inputEventHandlerKey(void *data, int type, void *event)
{
DSInputKeyboardEvent *ev = static_cast< DSInputKeyboardEvent* >(event);
return EINA_TRUE;
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
Eina_Bool DSSeat::inputEventHandlerMouse(void *data, int type, void *event)
{
DSInputMouseEvent *ev = static_cast< DSInputMouseEvent* >(event);
return EINA_TRUE;
}
+/*LCOV_EXCL_STOP*/
+/*LCOV_EXCL_START*/
Eina_Bool DSSeat::inputEventHandlerTouch(void *data, int type, void *event)
{
DSInputTouchEvent *ev = static_cast< DSInputTouchEvent* >(event);
return EINA_TRUE;
}
+/*LCOV_EXCL_STOP*/
std::shared_ptr<DSWindow> DSSeat::getTopWindow(std::shared_ptr<DSWindow> winExcl)
{