Remote controller for a game?

Check this topic, seems like exactly what you need: Introducing AirConsole - use Smartphones as controllers for your HTML5 games