From 2d7f9d921b3508a5c5effba5604aaea5620441ef Mon Sep 17 00:00:00 2001 From: vampiric_x Date: Sun, 12 Jan 2025 04:26:22 +0100 Subject: ui(QT): QT 6.7.3 Implementation --- src/citron/bootmanager.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/citron/bootmanager.cpp') diff --git a/src/citron/bootmanager.cpp b/src/citron/bootmanager.cpp index 7443c7048..96d9f970f 100644 --- a/src/citron/bootmanager.cpp +++ b/src/citron/bootmanager.cpp @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2014 Citra Emulator Project & 2025 Citron Homebrew Project +// SPDX-FileCopyrightText: 2025 Citron Homebrew Emulator Project & vampiric_x 2025 // SPDX-License-Identifier: GPL-2.0-or-later #include @@ -736,19 +736,19 @@ void GRenderWindow::wheelEvent(QWheelEvent* event) { } void GRenderWindow::TouchBeginEvent(const QTouchEvent* event) { - QList touch_points = event->touchPoints(); + QList touch_points = event->points(); for (const auto& touch_point : touch_points) { - const auto [x, y] = ScaleTouch(touch_point.pos()); + const auto [x, y] = ScaleTouch(touch_point.position()); const auto [touch_x, touch_y] = MapToTouchScreen(x, y); input_subsystem->GetTouchScreen()->TouchPressed(touch_x, touch_y, touch_point.id()); } } void GRenderWindow::TouchUpdateEvent(const QTouchEvent* event) { - QList touch_points = event->touchPoints(); + QList touch_points = event->points(); input_subsystem->GetTouchScreen()->ClearActiveFlag(); for (const auto& touch_point : touch_points) { - const auto [x, y] = ScaleTouch(touch_point.pos()); + const auto [x, y] = ScaleTouch(touch_point.position()); const auto [touch_x, touch_y] = MapToTouchScreen(x, y); input_subsystem->GetTouchScreen()->TouchMoved(touch_x, touch_y, touch_point.id()); } @@ -1137,4 +1137,4 @@ bool GRenderWindow::eventFilter(QObject* object, QEvent* event) { emit MouseActivity(); } return false; -} +} \ No newline at end of file -- cgit v1.2.3