mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 04:30:09 -05:00
Add strict test for whitespace at end of line
More work on coding style
This commit is contained in:
@@ -44,7 +44,8 @@ void TuioEar::removeTuioObject(TuioObject*) { }
|
||||
void TuioEar::addTuioCursor(TuioCursor* tcur) {
|
||||
_mx.lock();
|
||||
_tap = false;
|
||||
// find same id in _list if it exists in _removeList (new input with same ID as a previously stored)
|
||||
// find same id in _list if it exists in _removeList (new input with same ID as a
|
||||
// previously stored)
|
||||
int i = tcur->getSessionID();
|
||||
std::vector<int>::iterator foundID = std::find_if(
|
||||
_removeList.begin(),
|
||||
@@ -93,7 +94,10 @@ void TuioEar::removeTuioCursor(TuioCursor* tcur) {
|
||||
}
|
||||
dist /= tcur->getPath().size();
|
||||
|
||||
double heldTime = tcur->getPath().back().getTuioTime().getTotalMilliseconds() - tcur->getPath().front().getTuioTime().getTotalMilliseconds();
|
||||
double heldTime =
|
||||
tcur->getPath().back().getTuioTime().getTotalMilliseconds() -
|
||||
tcur->getPath().front().getTuioTime().getTotalMilliseconds();
|
||||
|
||||
if (heldTime < 180 && dist < 0.0004 && _list.size() == 1 && _removeList.size() == 1) {
|
||||
_tapCo = TuioCursor(*tcur);
|
||||
_tap = true;
|
||||
|
||||
Reference in New Issue
Block a user