pub->deviceRemove(name, identifier, devClass, DSInput::NoneSubclass);
}
+/*LCOV_EXCL_START*/
void DSInputPrivate::PostKeyboardEvent(int keycode, bool pressed, std::string devIdentifier, DSInput::DeviceClass devClass, uint32_t timestamp)
{
DS_GET_PUB(DSInput);
else if (type == DSInputEvent::TouchUpEvent)
pub->touchUp(index, x, y, devIdentifier, devClass, timestamp);
}
+/*LCOV_EXCL_STOP*/
int DSInput::DS_INPUT_EVENT_KEY_DOWN = 0;
int DSInput::DS_INPUT_EVENT_KEY_UP = 0;
delete device;
}
+/*LCOV_EXCL_START*/
DSInputDevice *DSInput::findDevice(std::string devIdentifier, DSInput::DeviceClass devClass)
{
for (auto dev : devList)
DSInputTouchEvent *ev = new DSInputTouchEvent(std::make_shared<DSInputDevice>(*device), DSInputEvent::TouchUpEvent, timestamp, index, x, y);
ecore_event_add(DS_INPUT_EVENT_TOUCH_UP, (void *)ev, nullptr, nullptr);
}
-
+/*LCOV_EXCL_STOP*/
void DSInput::registerCallbackDeviceAdd(DSObject *slot, std::function<void(std::shared_ptr<DSInputDevice>)> func)
{
case LIBINPUT_EVENT_DEVICE_REMOVED:
dsLibinput->__processDeviceRemoveEvent(event);
break;
+/*LCOV_EXCL_START*/
case LIBINPUT_EVENT_KEYBOARD_KEY:
dsLibinput->__processKeyboardKeyEvent(event);
break;
break;
default:
break;
+/*LCOV_EXCL_STOP*/
}
libinput_event_destroy(event);
}
}
}
+/*LCOV_EXCL_START*/
void DSLibinput::__processKeyboardKeyEvent(struct:: libinput_event *event)
{
struct:: libinput_event_keyboard *keyboard_event = libinput_event_get_keyboard_event(event);
{
;
}
+/*LCOV_EXCL_STOP*/
} // namespace display_server