What steps will reproduce the problem?
1. launch pymt app with two tuio providers (i.e. 'left' and 'right')
2. generate tuio msgs on both ports
3. on_touch_move(self, touch): print touch.device => gives the one with
lowest UDP port
What is the expected output? What do you see instead?
expected: based on what port osc message is received, use the correct
TuioTouchProvider instance.
instead: whatever the port, only the device with lower port is used, always
Please provide any additional information below.
osc is a singleton, when registering a callback, you can only give the
oscpath (and that's fine _IF_ osc were _NOT_ a singleton).
The problem is that TuioTouchProvider does not have a, let's say,
"self.osc" instance, but osc is a global object shared by all the
TuioTouchProvider instances.
Not to be fixed in Pymt, but in osc.
Original issue reported on code.google.com by ilya.cas...@gmail.com on 1 Jun 2010 at 9:59
Original issue reported on code.google.com by
ilya.cas...@gmail.com
on 1 Jun 2010 at 9:59