views:

20

answers:

0

I'm trying to do something pretty complicated, so I've sort created this hypothetical that if answered would solve my problem:

Say I was sitting in a room with two computers. Computer 1 has a game of pong that I've programmed. I would like to be able to set up a web page whereby I could log on with Computer 2, and be able to play the game as if I was sitting at computer 1. In other words, if I held up for 2 seconds on computer 2, computer 1 would react as if I was holding up for two seconds on it's keyboard instead of computer 2's. It does not necessarily have to simulate pressing the actual keys on the keyboard, but has to, in some way. transmit to the pong game, preferably in real time, that a certain key has been held for two seconds and to act on it.

Does anyone know any way of doing this, preferably with PHP and/or C#?