We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexDiscussionGeneral Discussion,  Status › network mouse input
Page Index Toggle Pages: 1
network mouse input? (Read 1580 times)
network mouse input?
Sep 21st, 2009, 3:36am
 
hello,

i am wondering about the possibility of two mice interacting with a sketch over the internet.

ie if you wanted to make a simple game of tic tac toe, where each player uses a mouse, but is potentially in two different locations (ie LA and NY), is it possible?
Re: network mouse input?
Reply #1 - Sep 21st, 2009, 4:34am
 
Well, you can use mouse input for the locally running sketch, and network data holding the current remote mouse input (perhaps filtered, eg. to send them only when clicking) for the distant player.
Re: network mouse input?
Reply #2 - Sep 21st, 2009, 8:39am
 
Thankyou Philho, can two people interact with an online sketch at once?
Re: network mouse input?
Reply #3 - Sep 21st, 2009, 9:10am
 
I think so, you can see, for example, at the library page, Network link. There are alternatives (using UDP or OSC, IIRC, for example).
Page Index Toggle Pages: 1