Exemple #1
0
        public Controller(Screen screen)
        {
            SmoothingAmount = 8;
            ScreenSize = screen.Bounds;
            InputCont = new InputController(ScreenSize);

            for (int i = 0; i < SMOOTHING_BUFFER_SIZE; i++)
                SmoothingBuffer[i] = new PointF();

            wm.WiimoteChanged += new EventHandler<WiimoteChangedEventArgs>(wm_WiimoteChanged);
            wm.WiimoteExtensionChanged += new EventHandler<WiimoteExtensionChangedEventArgs>(wm_WiimoteExtensionChanged);

            for (int i = 0; i < src.Length; i++)
            {
                src[i] = new PointF();
                dst[i] = new PointF();
            }

            CursorEnabled = LoadConfig();
            PrevCursorEnabled = CursorEnabled;
        }
Exemple #2
0
        public Controller(Screen screen)
        {
            SmoothingAmount = 8;
            ScreenSize      = screen.Bounds;
            InputCont       = new InputController(ScreenSize);

            for (int i = 0; i < SMOOTHING_BUFFER_SIZE; i++)
            {
                SmoothingBuffer[i] = new PointF();
            }

            wm.WiimoteChanged          += new EventHandler <WiimoteChangedEventArgs>(wm_WiimoteChanged);
            wm.WiimoteExtensionChanged += new EventHandler <WiimoteExtensionChangedEventArgs>(wm_WiimoteExtensionChanged);

            for (int i = 0; i < src.Length; i++)
            {
                src[i] = new PointF();
                dst[i] = new PointF();
            }

            CursorEnabled     = LoadConfig();
            PrevCursorEnabled = CursorEnabled;
        }