diff -r 858e90c7cbaa -r 6c08d4d7219e front_idill/extern/fajran-npTuioClient/src/client.cpp --- a/front_idill/extern/fajran-npTuioClient/src/client.cpp Fri Apr 06 18:36:40 2012 +0200 +++ b/front_idill/extern/fajran-npTuioClient/src/client.cpp Thu Apr 12 13:09:46 2012 +0200 @@ -47,6 +47,19 @@ data.y = y; data.z = z; data.a = a; + data.code = ""; + tuio_callback(data); +} + +/* +* Ajouté par alexandre.bastien@iri.centrepompidou.fr +*/ +static inline void call(TuioEvent type, long sid, const char* code) +{ + TuioEventData data; + data.type = type; + data.sid = sid; + data.code = code; tuio_callback(data); } @@ -106,6 +119,30 @@ cursor->getSessionID(), cursor->getFingerID(), cursor->getX(), cursor->getY(), cursor->getZ(), 0); } + + /* + * Ajouté par alexandre.bastien@iri.centrepompidou.fr + */ + void addTuioString(TuioString *string) + { + call(TE_STRING_ADD, string->getSessionID(), string->getCode()); + } + + /* + * Ajouté par alexandre.bastien@iri.centrepompidou.fr + */ + void updateTuioString(TuioString *string) + { + call(TE_STRING_UPDATE, string->getSessionID(), string->getCode()); + } + + /* + * Ajouté par alexandre.bastien@iri.centrepompidou.fr + */ + void removeTuioString(TuioString *string) + { + call(TE_STRING_REMOVE, string->getSessionID(), string->getCode()); + } void refresh(long timestamp) { @@ -136,3 +173,7 @@ listener = 0; } +void t() +{ + std::cout << "t" << std::endl; +} \ No newline at end of file