コード例 #1
0
        public WiiDrums(Wiimote wm)
        {
            this    = new WiiDrums();
            wiimote = wm;

#if DEBUG
            DebugLastData = new byte[] { 0 };
#endif

            Joy.Calibrate(Calibrations.Defaults.WiiGuitarDefault.Joy);
        }
コード例 #2
0
        public void SetCalibration(GameCubeController from)
        {
            if (from.CalibrationEmpty)
            {
                // don't apply empty calibrations
                return;
            }

            joystick.Calibrate(from.joystick);
            cStick.Calibrate(from.cStick);
            L.Calibrate(from.L);
            R.Calibrate(from.R);
        }
コード例 #3
0
        public void SetCalibration(INintrollerState from)
        {
            if (from.CalibrationEmpty)
            {
                // don't apply empty calibrations
                return;
            }

            if (from.GetType() == typeof(ProController))
            {
                LJoy.Calibrate(((ProController)from).LJoy);
                RJoy.Calibrate(((ProController)from).RJoy);
            }
        }
コード例 #4
0
        public WiiGuitar(Wiimote wm)
        {
            this    = new WiiGuitar();
            wiimote = wm;

            CALIB_Whammy_Min = 0xFF;
            CALIB_Whammy_Max = 0;

            CALIB_Enable_TouchStrip = false;

            oldTouchStripValue = WGT_TOUCH_STRIP_None;

            IsGH3SetYet = false;
            IsGH3       = false;

            CALIB_Tilt_Neutral     = 0;
            CALIB_Tilt_TiltedREEEE = (float)(Math.PI / 2);

#if DEBUG
            DebugLastData = new byte[] { 0 };
#endif

            Joy.Calibrate(Calibrations.Defaults.WiiGuitarDefault.Joy);
        }
コード例 #5
0
        public void SetCalibration(INintrollerState from)
        {
            if (from.CalibrationEmpty)
            {
                // don't apply empty calibrations
                return;
            }

            if (from.GetType() == typeof(ClassicControllerPro))
            {
                LJoy.Calibrate(((ClassicControllerPro)from).LJoy);
                RJoy.Calibrate(((ClassicControllerPro)from).RJoy);
            }
            else if (from.GetType() == typeof(Wiimote))
            {
                wiimote.SetCalibration(from);
            }
        }
コード例 #6
0
        public void SetCalibration(INintrollerState from)
        {
            if (from.CalibrationEmpty)
            {
                return;
            }

            if (from.GetType() == typeof(Guitar))
            {
                joystick.Calibrate(((Guitar)from).joystick);
                whammyBar.Calibrate(((Guitar)from).whammyBar);
                wiimote.SetCalibration(((Guitar)from).wiimote);
            }
            else if (from.GetType() == typeof(Wiimote))
            {
                wiimote.SetCalibration(from);
            }
        }
コード例 #7
0
        public void SetCalibration(INintrollerState from)
        {
            if (from.CalibrationEmpty)
            {
                // don't apply empty calibrations
                return;
            }

            if (from.GetType() == typeof(Nunchuk))
            {
                accelerometer.Calibrate(((Nunchuk)from).accelerometer);
                joystick.Calibrate(((Nunchuk)from).joystick);
                wiimote.SetCalibration(((Nunchuk)from).wiimote);
            }
            else if (from.GetType() == typeof(Wiimote))
            {
                wiimote.SetCalibration(from);
            }
        }