0.0.8 • Published 5 years ago
cycle-gyronorm-driver v0.0.8
DEPRECATED
Just use
fromEvent(window, 'devicemotion')
fromEvent(window, 'deviceorientation')
instead
cycle-gyronorm-driver
Cycle.js drivers for accessing normalized accelerometer and gyroscope data using gyronorm.js.
Try the demo on your mobile device!
Note that this package was tested with Chrome browser (>= 65.0.3325.181) only.
API
makeGyronormDriver(options)
gyronorm.js accelerometer and gyroscope driver factory.
Params:
- options a subset of the GyroNorm options (https://github.com/dorukeker/gyronorm.js#options)
- frequency? {number}
- gravityNormalized? {boolean}
- orientationBase? {string}
- decimalCount? {number}
- screenAdjusted? {boolean}
Return:
- Driver the GyroNorm Cycle.js driver function. It takes no stream and returns GyroNorm output data.