How it works...
We have implemented the sender application that sends the position of the mouse via OSC protocol. Those messages, with the address /obj/position
, can be received by any non-Cinder OSC application implemented in many other frameworks and programming languages. The first argument in the message is the x axis position of the mouse and the second argument is the y axis position. Both are of the float
type.
In our case, the application that receives messages is another Cinder application that draws a filled circle at exactly the same position where you point it in the sender application window.