public OrientationService(IOrientationSensor orientationSensor) { SupportedPageOrientation = XSupportedPageOrientation.Both; _orientationSensor = orientationSensor; _orientationSensor.OrientationChanged += _orientationSensor_OrientationChanged; }
public XMasterDetailView(IOrientationSensor orientationSensor) { _orientationSensor = orientationSensor; this.Register <CollapseMasterDetailMessage>(_onCollapse); this.Register <ShowMasterDetailMessage>(_onShow); this.Register <EnableMenuSwipeGesture>(_onEnableSwipe); this.Register <DisableMenuSwipeGesture>(_onDisableSwipe); }
public XMasterDetailView(IOrientationSensor orientationSensor) { _orientationSensor = orientationSensor; this.Register<CollapseMasterDetailMessage>(_onCollapse); this.Register<ShowMasterDetailMessage>(_onShow); this.Register<EnableMenuSwipeGesture>(_onEnableSwipe); this.Register<DisableMenuSwipeGesture>(_onDisableSwipe); }
public OrientationController(MotorController motorController, IOrientationSensor orientationSensor, Dictionary <Axis, IOrientationOffsetHandler> offsetHandlers) { this.orientationSensor = orientationSensor; this.motorController = motorController; this.orientationOffsetHandlers = offsetHandlers; this.assistCount = 0; this.FramesPerAssist = 1; }
public OrientationController(MotorController motorController, IOrientationSensor orientationSensor) : this( motorController, orientationSensor, new Dictionary <Axis, IOrientationOffsetHandler>() { [Axis.Yaw] = new OrientationOffsetHandler(0.0f, 0.1f), [Axis.Pitch] = new OrientationOffsetHandler(5.0f, 0.2f), [Axis.Roll] = new OrientationOffsetHandler(5.0f, 0.2f), }) { }
public DummyDevice(IServiceRegistry services) { VRApi = VRApi.Dummy; var input = services.GetService <InputManager>(); if (input != null) { orientationSensor = input.Sensors.OfType <IOrientationSensor>().FirstOrDefault(); gyroscopeSensor = input.Sensors.OfType <IGyroscopeSensor>().FirstOrDefault(); } window = services.GetService <IGame>().Window; }
public HomeTabsView(IOrientationSensor orientationSensor) : base(orientationSensor) { }
public XTabbedPageView(IOrientationSensor orientationSensor) { _orientationSensor = orientationSensor; ItemTemplate = new DataTemplate(typeof(DynamicContentPage)); }
public XNavigationPageView(IOrientationSensor orientationSensor, IEnvironmentService environmentService) { _orientationSensor = orientationSensor; _environmentService = environmentService; }