mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:51:20 +02:00
Remove unused variable thisPointConsumed
This commit is contained in:
parent
a3811c2844
commit
80abe1865a
1 changed files with 0 additions and 3 deletions
|
@ -267,7 +267,6 @@ void TouchscreenVirtualPadDevice::touchUpdateEvent(const QTouchEvent* event) {
|
||||||
int idxMoveStartingPointCandidate = -1;
|
int idxMoveStartingPointCandidate = -1;
|
||||||
int idxViewStartingPointCandidate = -1;
|
int idxViewStartingPointCandidate = -1;
|
||||||
|
|
||||||
bool thisPointConsumed = false;
|
|
||||||
glm::vec2 thisPoint;
|
glm::vec2 thisPoint;
|
||||||
int thisPointId;
|
int thisPointId;
|
||||||
std::map<int, TouchType> unusedTouchesInEvent;
|
std::map<int, TouchType> unusedTouchesInEvent;
|
||||||
|
@ -276,7 +275,6 @@ void TouchscreenVirtualPadDevice::touchUpdateEvent(const QTouchEvent* event) {
|
||||||
thisPoint.x = tPoints[i].pos().x();
|
thisPoint.x = tPoints[i].pos().x();
|
||||||
thisPoint.y = tPoints[i].pos().y();
|
thisPoint.y = tPoints[i].pos().y();
|
||||||
thisPointId = tPoints[i].id();
|
thisPointId = tPoints[i].id();
|
||||||
thisPointConsumed = false;
|
|
||||||
|
|
||||||
if (!moveTouchFound && _moveHasValidTouch && _moveCurrentTouchId == thisPointId) {
|
if (!moveTouchFound && _moveHasValidTouch && _moveCurrentTouchId == thisPointId) {
|
||||||
// valid if it's an ongoing touch
|
// valid if it's an ongoing touch
|
||||||
|
@ -301,7 +299,6 @@ void TouchscreenVirtualPadDevice::touchUpdateEvent(const QTouchEvent* event) {
|
||||||
if (!viewTouchFound && idxViewStartingPointCandidate == -1 && viewTouchBeginIsValid(thisPoint) &&
|
if (!viewTouchFound && idxViewStartingPointCandidate == -1 && viewTouchBeginIsValid(thisPoint) &&
|
||||||
(!_unusedTouches.count(thisPointId) || _unusedTouches[thisPointId] == VIEW )) {
|
(!_unusedTouches.count(thisPointId) || _unusedTouches[thisPointId] == VIEW )) {
|
||||||
idxViewStartingPointCandidate = i;
|
idxViewStartingPointCandidate = i;
|
||||||
thisPointConsumed = true;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue