How to communicate in realtime from mobile to pc

Hi,

I am interested in a prototype to send some instructions like finger gestures or any kinda inputs from tablet to a PC build.

I can make a crossplatform build but main concern is to create a very high tech demo in PC and its inputs should be controlled by some handheld device.

I wonder how they have done this.

Any kind of help would be highly appreciated.

Thanks,