function deviceOrientation() if then --Check to see the device is in LANDSCAPE position \<---- else --pause game and tell user to turn their device sideways/landscape \<---- end --create runtime listener Runtime:addEventListener ( "orientation", deviceOrientation )
The above is my code. Im trying to create a function that checks to make sure the device is Landscape. If it the device is turned to the Portrait position, I want my game to pause (stop) and issue a popup window that tells the user to turn the device “sideways” or whatever…
Anyway, that’s what i am trying to do, but haven’t been able to get it to work. By chance, would anyone have a solution for this? :huh:
