You'd think that, in their infinite wisdom because they DID create something meant to be compatible with such devices, that they'd put something like this in the core code. However, that's the beauty it. Because it uses HTML5/JS for cross-compatibility, you can use the
DeviceOrientationEvent.
In addition to the link that
@LTN Games provided, there are two more that I know of (taken from my own bookmarks, since I'm a web designer):
This one on
MDN and this one on
HTML5 Rocks.
You can take advantage of
window's inherent event listeners to add orientation options. As an example:
JavaScript:
var supportsOrientationChange = "onorientationchange" in window,
orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";
console.log(supportsOrientationChange, orientationEvent);
will output "false" and "resize" in RMMV, meaning it doesn't support orientation change (I can just imagine trying to orientate the monitor! Haha!) but it does support window resizing. That's probably a poor example, but technically it can be done with a bit of work and tweaking. And, of course, a lot of testing on the devices themselves.