This commit is contained in:
Vaxry 2024-09-23 19:03:55 +01:00
parent afe8d2a2b9
commit f40d6ce4ae

View file

@ -266,25 +266,6 @@ static bool isDRMCard(const char* sysname) {
void Aquamarine::CSession::onReady() {
dispatchLibseatEvents();
dispatchLibinputEvents();
for (auto const& d : libinputDevices) {
if (d->keyboard)
backend->events.newKeyboard.emit(SP<IKeyboard>(d->keyboard));
if (d->mouse)
backend->events.newPointer.emit(SP<IPointer>(d->mouse));
if (d->touch)
backend->events.newTouch.emit(SP<ITouch>(d->touch));
if (d->switchy)
backend->events.newSwitch.emit(SP<ITouch>(d->touch));
if (d->tablet)
backend->events.newTablet.emit(SP<ITablet>(d->tablet));
if (d->tabletPad)
backend->events.newTabletPad.emit(SP<ITabletPad>(d->tabletPad));
for (auto const& t : d->tabletTools) {
backend->events.newTabletTool.emit(SP<ITabletTool>(t));
}
}
}
void Aquamarine::CSession::dispatchUdevEvents() {