Use your phone as a wii remote to play pc games.Accelerometer values from a windows phone are sent to a server build using nodejs and websockets .The server then sends the data to a java class which uses websockets in java and java.Robot class to perform approriate actions like keyPress