brackeen / glfm

OpenGL ES and input for iOS, tvOS, Android, and WebGL
zlib License
566 stars 77 forks source link

Web: Add support for sensors (via Emscripten) #34

Open brackeen opened 4 years ago

brackeen commented 4 years ago

Sensor input is implemented on iOS and Android, but not for Web. Sensors: accelerometer, magnetometer, gyroscope, rotation matrix

To implement in glfm_platform_emscripten.c:

Sensor output must match the iOS/Android versions.