Exemple #1
0
        /// <summary>
        ///     Enables the SDK and sets updatemode to manual as well as the color of the background to black.
        /// </summary>
        public override void Enable()
        {
            if (!CueSDK.IsInitialized)
            {
                CueSDK.Initialize(true);
            }

            CueSDK.UpdateMode = UpdateMode.Manual;
            _keyboard         = CueSDK.KeyboardSDK;
            switch (_keyboard.DeviceInfo.Model)
            {
            case "K95 RGB":
                Height          = 7;
                Width           = 25;
                Slug            = "corsair-k95-rgb";
                PreviewSettings = new PreviewSettings(676, 190, new Thickness(0, -15, 0, 0), Resources.k95);
                break;

            case "K70 RGB":
            case "K70 RGB RAPIDFIRE":
            case "K70 LUX RGB":
                Height          = 7;
                Width           = 21;
                Slug            = "corsair-k70-rgb";
                PreviewSettings = new PreviewSettings(676, 210, new Thickness(0, -25, 0, 0), Resources.k70);
                break;

            case "K65 RGB":
            case "CGK65 RGB":
            case "K65 LUX RGB":
            case "K65 RGB RAPIDFIRE":
                Height          = 7;
                Width           = 18;
                Slug            = "corsair-k65-rgb";
                PreviewSettings = new PreviewSettings(610, 240, new Thickness(0, -30, 0, 0), Resources.k65);
                break;

            case "STRAFE RGB":
                Height          = 7;
                Width           = 22;
                Slug            = "corsair-strafe-rgb";
                PreviewSettings = new PreviewSettings(665, 215, new Thickness(0, -5, 0, 0), Resources.strafe);
                break;
            }

            Logger.Debug("Corsair SDK reported device as: {0}", _keyboard.DeviceInfo.Model);
            _keyboard.Brush = _keyboardBrush ?? (_keyboardBrush = new ImageBrush());
        }
Exemple #2
0
        /// <summary>
        ///     Enables the SDK and sets updatemode to manual as well as the color of the background to black.
        /// </summary>
        public override void Enable()
        {
            if (!CueSDK.IsInitialized)
            {
                CueSDK.Initialize();
            }

            _keyboard = CueSDK.KeyboardSDK;
            switch (_keyboard.DeviceInfo.Model)
            {
            case "K95 RGB":
                Height          = 7;
                Width           = 25;
                PreviewSettings = new PreviewSettings(676, 190, new Thickness(0, -15, 0, 0), Resources.k95);
                break;

            case "K70 RGB":
            case "K70 RGB RAPIDFIRE":
                Height          = 7;
                Width           = 21;
                PreviewSettings = new PreviewSettings(676, 210, new Thickness(0, -25, 0, 0), Resources.k70);
                break;

            case "K65 RGB":
                Height          = 7;
                Width           = 18;
                PreviewSettings = new PreviewSettings(610, 240, new Thickness(0, -30, 0, 0), Resources.k65);
                break;

            case "STRAFE RGB":
                Height          = 7;
                Width           = 22;
                PreviewSettings = new PreviewSettings(665, 215, new Thickness(0, -5, 0, 0), Resources.strafe);
                break;
            }
            Logger.Debug("Corsair SDK reported device as: {0}", _keyboard.DeviceInfo.Model);
            Slug            = "corsair-" + _keyboard.DeviceInfo.Model.Replace(' ', '-').ToLower();
            _keyboard.Brush = _keyboardBrush ?? (_keyboardBrush = new ImageBrush());
        }