示例#1
0
        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);
        }
示例#3
0
        public XMasterDetailView(IOrientationSensor orientationSensor)
        {
            _orientationSensor = orientationSensor;

            this.Register<CollapseMasterDetailMessage>(_onCollapse);
            this.Register<ShowMasterDetailMessage>(_onShow);

            this.Register<EnableMenuSwipeGesture>(_onEnableSwipe);
            this.Register<DisableMenuSwipeGesture>(_onDisableSwipe);
        }
示例#4
0
        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;
        }
示例#5
0
 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),
 })
 {
 }
示例#6
0
        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;
        }
示例#7
0
 public HomeTabsView(IOrientationSensor orientationSensor) : base(orientationSensor)
 {
 }
示例#8
0
 public XTabbedPageView(IOrientationSensor orientationSensor)
 {
     _orientationSensor = orientationSensor;
     ItemTemplate = new DataTemplate(typeof(DynamicContentPage));
 }
 public XNavigationPageView(IOrientationSensor orientationSensor, IEnvironmentService environmentService)
 {
     _orientationSensor = orientationSensor;
     _environmentService = environmentService;
 }
示例#10
0
 public XNavigationPageView(IOrientationSensor orientationSensor, IEnvironmentService environmentService)
 {
     _orientationSensor  = orientationSensor;
     _environmentService = environmentService;
 }
示例#11
0
 public OrientationService(IOrientationSensor orientationSensor)
 {
     SupportedPageOrientation = XSupportedPageOrientation.Both;
     _orientationSensor       = orientationSensor;
     _orientationSensor.OrientationChanged += _orientationSensor_OrientationChanged;
 }
示例#12
0
 public XTabbedPageView(IOrientationSensor orientationSensor)
 {
     _orientationSensor = orientationSensor;
     ItemTemplate       = new DataTemplate(typeof(DynamicContentPage));
 }