0

Any idea how this is done? https://dl.dropbox.com/u/45572383/23122012025.m4v

I was not aware you can detect physical computer screen tilt on other than handhelds. Does this have to do with me being on a Mac? Or will this work on any computer regardless?

asdasdasd
  • 17
  • 2
  • 1
    Most definitely not "any computer", I can't see why I would tilt my PC ;-) – Kos Dec 23 '12 at 13:33
  • @Kos just nitpicking, but I found out that my laptop has an accelerometer when I accidentally dropped it and the system stopped touching the hard drive so that the disk wouldn't be damaged in the fall. It worked! – MBillau Oct 14 '13 at 20:00
  • Nice! I wonder if tower PCs also have that. Mine fell (and flew) at least once :-) – Kos Oct 15 '13 at 16:09

2 Answers2

5

There is an API in iOS, OS X and Firefox for this information, when the hardware supports it. See this question for a detailed answer: How to access accelerometer/gyroscope data from Javascript?

Community
  • 1
  • 1
Boldewyn
  • 81,211
  • 44
  • 156
  • 212
0

The computer would have to have some kind of tilt sensor/ gyro built in with an accessible API. The mac book pro does have such a device. PCs won't usually as monitors are not part of the PC itself and I am guessing it is the tilt of the monitor you are interested in?

The tilt sensor in a macbook pro is for the laptop rather than the screen angle so again if the laptop screen is fully open or nearly closed this would not be possible to tell.

Jon Taylor
  • 7,865
  • 5
  • 30
  • 55