Skip to main content
Participant
October 24, 2017
Question

Accelerometer or Gyroscope with HTML5 Canvas?

  • October 24, 2017
  • 1 reply
  • 1067 views

Is there a way to access a phone's accelerometer or gyroscope with Adobe Animate CC's HTML5 canvas feature? I understand we're using Create JS here so it's not super technical, but this is something there must be a relatively simple method to access? I'm not looking to do anything overly complex, just return a value when a device is tilted left/right - so although gyroscope is preferred, accelerometer would suffice.

This topic has been closed for replies.

1 reply

Preran
Legend
October 24, 2017

Not the expert, but I found this article that could probably provide you with insights.

Mobile Gyroscope with Javascript and Quaternions Programming Tutorial Part 1 |

Thanks,

Preran