mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +02:00
Coding style corrections
This commit is contained in:
parent
b8c0f4d686
commit
a3811c2844
2 changed files with 10 additions and 17 deletions
|
@ -282,36 +282,29 @@ void TouchscreenVirtualPadDevice::touchUpdateEvent(const QTouchEvent* event) {
|
|||
// valid if it's an ongoing touch
|
||||
moveTouchFound = true;
|
||||
moveTouchUpdate(thisPoint);
|
||||
thisPointConsumed = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (thisPointConsumed) continue;
|
||||
|
||||
if (!viewTouchFound && _viewHasValidTouch && _viewCurrentTouchId == thisPointId) {
|
||||
// valid if it's an ongoing touch
|
||||
viewTouchFound = true;
|
||||
viewTouchUpdate(thisPoint);
|
||||
thisPointConsumed = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (thisPointConsumed) continue;
|
||||
|
||||
if (!moveTouchFound && idxMoveStartingPointCandidate == -1 && moveTouchBeginIsValid(thisPoint) &&
|
||||
(!_unusedTouches.count(thisPointId) || _unusedTouches[thisPointId] == MOVE )) {
|
||||
idxMoveStartingPointCandidate = i;
|
||||
thisPointConsumed = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (thisPointConsumed) continue;
|
||||
|
||||
if (!viewTouchFound && idxViewStartingPointCandidate == -1 && viewTouchBeginIsValid(thisPoint) &&
|
||||
(!_unusedTouches.count(thisPointId) || _unusedTouches[thisPointId] == VIEW )) {
|
||||
idxViewStartingPointCandidate = i;
|
||||
thisPointConsumed = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (thisPointConsumed) continue;
|
||||
|
||||
if (moveTouchBeginIsValid(thisPoint)) {
|
||||
unusedTouchesInEvent[thisPointId] = MOVE;
|
||||
} else if (viewTouchBeginIsValid(thisPoint)) {
|
||||
|
|
Loading…
Reference in a new issue