I have a full-screen game in HTML+JavaScript, which uses the arrow keys as primary controls. This cannot be used on keyboardless Android devices (I haven\'t tested on iOS),
You could use javascript to find out the height of the windows view port and then us an if statement saying:
if ($(window).height() <= "960")) { //Your code to display keyboard controls //P.S. 960 is height of iPhone 4+ screen }
Edit: Left out ) at end of $(window).height() <= "960"
$(window).height() <= "960"