Fixes issue in refactoring : replace gyroData by deviceOrientation