Hi,
It occurs to me that following on what lee has done, it would be good to have two pens a red (LEFT) and a blue (RIGHT) pen. Both will have switches. Then the left switch can be used as a left_mouse_button click and the right switch can be the right_mouse_click.
The problem is to distinguish between multiple pens. You talk about a red and a blue pen but how is the software knowing which light dot belongs to which pen? I agree that it would open up possibilities to have multiple distinguishable pens. But this is not possible with simple “on/off” IR pens.
Even if I had the possibility to do it, I wouldn’t incorporate into my software. I would instead recommend to make an independent application that makes use of the TUIO multitouch messages to accomplish the desired behavior.
Just my 2 cents, Uwe
Licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Germany License.