mirror of
https://github.com/citra-emu/citra-nightly.git
synced 2025-10-04 22:07:03 +00:00
remove unused or used-once variables
This commit is contained in:
parent
736485cccf
commit
1ce8e0ec93
|
@ -250,17 +250,13 @@ std::pair<unsigned, unsigned> GRenderWindow::ScaleTouch(QPointF pos) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GRenderWindow::TouchBeginEvent(const QTouchEvent* event) {
|
void GRenderWindow::TouchBeginEvent(const QTouchEvent* event) {
|
||||||
auto pos = event->touchPoints().first().pos(); // there should only be 1 point in TouchBegin
|
const auto [x, y] = ScaleTouch(event->touchPoints().first().pos());
|
||||||
|
|
||||||
const auto [x, y] = ScaleTouch(pos);
|
|
||||||
|
|
||||||
this->TouchPressed(x, y);
|
this->TouchPressed(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GRenderWindow::TouchUpdateEvent(const QTouchEvent* event) {
|
void GRenderWindow::TouchUpdateEvent(const QTouchEvent* event) {
|
||||||
QPointF pos;
|
QPointF pos;
|
||||||
int active_points = 0;
|
int active_points = 0;
|
||||||
const auto points = event->touchPoints();
|
|
||||||
|
|
||||||
// average all active touch points
|
// average all active touch points
|
||||||
for (const auto tp : event->touchPoints()) {
|
for (const auto tp : event->touchPoints()) {
|
||||||
|
|
Loading…
Reference in a new issue