Setting up HTML5 virtual controller