Detecting a tilt

is there a way of detect a tilt and triggering a behaviour or a JavaScript function? At the moment, I’m using some custom JavaScript, but I was hoping that there would be a way to do this inside Hype.

I tried posting this question this morning, but it hasn’t appeared on the forum. Not sure what happened to it.

JavaScript can be used to get accelerometer data from devices that supply that information.