0.5.0 • Published 2 years ago

threejs-gyroscope-controls v0.5.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago
import { GyroscopeControls } from 'threejs-gyroscope-controls';

const orbitControls = new GyroscopeControls(camera, renderer.domElement);
import { requestPermission } from 'threejs-gyroscope-controls';

window.addEventListener('click', () => {
    requestPermission().catch(() => console.error('Permission denied'))
})