session/input: add missing pos to touch down events

This commit is contained in:
Vaxry 2024-07-23 19:18:57 +02:00
parent 601f6cf95c
commit 4c72cd4d0b
1 changed files with 1 additions and 0 deletions

View File

@ -596,6 +596,7 @@ void Aquamarine::CSession::handleLibinputEvent(libinput_event* e) {
hlDevice->touch->events.down.emit(ITouch::SDownEvent{
.timeMs = (uint32_t)(libinput_event_touch_get_time_usec(te) / 1000),
.touchID = libinput_event_touch_get_seat_slot(te),
.pos = {libinput_event_touch_get_x_transformed(te, 1), libinput_event_touch_get_y_transformed(te, 1)},
});
break;
}