save input safely between frames with cursor->getPath() and clear list (& refrence path) after process to not lose any information

This commit is contained in:
Jonathan Bosson
2017-02-22 15:41:52 -07:00
parent c4bd08c19e
commit 49ca8eb2aa
4 changed files with 97 additions and 56 deletions
+5 -3
View File
@@ -60,15 +60,17 @@ class TuioEar : public TuioListener {
void refresh(TuioTime frameTime);
std::vector<TuioCursor*> getInput();
TuioTime getLastProcessedTime(int id);
std::vector<TuioCursor> getInput();
void clearInput();
void unlock() { _mx.unlock(); };
private:
TuioClient *_tuioClient;
OscReceiver *_oscReceiver;
std::vector<TuioCursor*> _list;
std::vector<TuioCursor> _list;
std::vector<int> _removeList;
std::vector<std::pair<int, TuioTime>> _processedPath;
std::mutex _mx;
};