示例#1
0
        /// <summary>
        /// Prevents a default instance of the <see cref="ChromaLink" /> class from being created.
        /// </summary>
        private ChromaLink()
        {
            Log.Debug("Chroma Link is initializing");
            Chroma.InitInstance();

            _custom = Custom.Create();
        }
示例#2
0
 /// <summary>
 /// Prevents a default instance of the <see cref="Mouse" /> class from being created.
 /// </summary>
 private Mouse()
 {
     Log.Info("Mouse is initializing");
     Chroma.InitInstance();
     _custom     = Custom.Create();
     _customGrid = CustomGrid.Create();
 }
示例#3
0
        /// <summary>
        /// Prevents a default instance of the <see cref="Keypad" /> class from being created.
        /// </summary>
        private Keypad()
        {
            Log.Debug("Keypad is initializing");
            Chroma.InitInstance();

            _custom = Custom.Create();
        }
示例#4
0
        public static IGenericDevice Get(Guid deviceId)
        {
            Chroma.Initialize();

            if (!Instances.ContainsKey(deviceId))
            {
                Instances[deviceId] = new GenericDevice(deviceId);
            }

            return(Instances[deviceId]);
        }
示例#5
0
        /// <summary>
        /// Prevents a default instance of the <see cref="Keyboard" /> class from being created.
        /// </summary>
        private Keyboard()
        {
            Log.Info("Keyboard initializing...");

            Chroma.InitInstance();

            CurrentEffectId = Guid.Empty;

            // We keep a local copy of a grid to speed up grid operations
            Log.Debug("Initializing private copy of Custom");
            _grid = Custom.Create();
        }
示例#6
0
        /// <summary>
        /// Prevents a default instance of the <see cref="Keyboard" /> class from being created.
        /// </summary>
        private Keyboard()
        {
            Chroma.InitInstance();

            CurrentEffectId = Guid.Empty;

            // We keep a local copy of a grid to speed up grid operations
            var gridArray = new Color[Constants.MaxRows][];

            for (var i = 0; i < Constants.MaxRows; i++)
            {
                gridArray[i] = new Color[Constants.MaxColumns];
            }

            _grid = new Custom(gridArray);
        }
示例#7
0
        /// <summary>
        /// Prevents a default instance of the <see cref="Keyboard" /> class from being created.
        /// </summary>
        private Keyboard()
        {
            Log.Info("Keyboard initializing...");

            Chroma.InitInstance();

            CurrentEffectId = Guid.Empty;

            // We keep a local copy of a grid to speed up grid operations
            Log.Debug("Creating grid array");
            var gridArray = new Color[Constants.MaxRows][];

            for (var i = 0; i < Constants.MaxRows; i++)
            {
                gridArray[i] = new Color[Constants.MaxColumns];
            }

            Log.Debug("Initializing private copy of Custom");
            _grid = new Custom(gridArray);
        }
示例#8
0
 /// <summary>
 /// Prevents a default instance of the <see cref="Headset" /> class from being created.
 /// </summary>
 private Headset()
 {
     Log.Info("Headset is initializing");
     Chroma.InitInstance();
 }
示例#9
0
 /// <summary>
 /// Prevents a default instance of the <see cref="Mousepad" /> class from being created.
 /// </summary>
 private Mousepad()
 {
     Chroma.InitInstance();
     _custom = Custom.Create();
 }
示例#10
0
 /// <summary>
 /// Prevents a default instance of the <see cref="Mouse" /> class from being created.
 /// </summary>
 private Mouse()
 {
     Chroma.InitInstance();
     _custom     = Custom.Create();
     _customGrid = CustomGrid.Create();
 }
示例#11
0
 /// <summary>
 /// Prevents a default instance of the <see cref="Mousepad" /> class from being created.
 /// </summary>
 private Mousepad()
 {
     Log.Debug("Mousepad is initializing.");
     Chroma.InitInstance();
     _custom = Custom.Create();
 }
示例#12
0
 /// <summary>
 /// Prevents a default instance of the <see cref="Headset" /> class from being created.
 /// </summary>
 private Headset()
 {
     Chroma.InitInstance();
 }
示例#13
0
 /// <summary>
 /// Prevents a default instance of the <see cref="Mouse" /> class from being created.
 /// </summary>
 private Mouse()
 {
     Log.Info("Mouse is initializing");
     Chroma.Initialize();
     _custom = Custom.Create();
 }