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