Exemplo n.º 1
0
 protected override void RegisterVariables(VariableRegistry variableRegistry)
 {
     variableRegistry.Register($"{DeviceName}_restore_dualshock", new RealColor(Color.FromArgb(0, 0, 255)), "Restore Color");
     variableRegistry.Register($"{DeviceName}_devicekey", DeviceKeys.Peripheral, "Key to Use", DeviceKeys.MOUSEPADLIGHT15, DeviceKeys.Peripheral_Logo);
     variableRegistry.Register($"{DeviceName}_disconnect_when_stop", false, "Disconnect when Stopping");
     variableRegistry.Register($"{DeviceName}_auto_init", false, "Initialize automatically when plugged in");
 }
Exemplo n.º 2
0
 protected override void RegisterVariables(VariableRegistry local)
 {
     local.Register($"{DeviceName}_devicekey", DeviceKeys.Peripheral_Logo, "Key to Use", DeviceKeys.MOUSEPADLIGHT15, DeviceKeys.Peripheral_Logo);
     local.Register($"{DeviceName}_restore_fallback", new RealColor(System.Drawing.Color.FromArgb(255, 0, 0, 255)), "Color", new Aurora.Utils.RealColor(System.Drawing.Color.FromArgb(255, 255, 255, 255)), new Aurora.Utils.RealColor(System.Drawing.Color.FromArgb(0, 0, 0, 0)), "Set restore color for your generic roccat devices");
     local.Register($"{DeviceName}_enable_generic", true, "Enable 1 color devices");
     local.Register($"{DeviceName}_enable_ryos", false, "Enable per key devices");
 }
Exemplo n.º 3
0
 protected override void RegisterVariables(VariableRegistry variableRegistry)
 {
     variableRegistry.Register($"{DeviceName}_set_default", false, "Set Default Color");
     variableRegistry.Register($"{DeviceName}_default_color", new Utils.RealColor(Color.FromArgb(255, 255, 255, 255)), "Default Color");
     variableRegistry.Register($"{DeviceName}_override_dll", false, "Override DLL", null, null, "Requires restart to take effect");
     variableRegistry.Register($"{DeviceName}_override_dll_option", LGDLL.GHUB, "Override DLL Selection", null, null, "Requires restart to take effect");
     variableRegistry.Register($"{DeviceName}_devicekey", DeviceKeys.Peripheral_Logo, "Key to Use", DeviceKeys.MOUSEPADLIGHT15, DeviceKeys.Peripheral);
 }
Exemplo n.º 4
0
 protected override void RegisterVariables(VariableRegistry variableRegistry)
 {
     variableRegistry.Register($"{DeviceName}_sleep", 0, "Sleep for", 1000, 0);
     variableRegistry.Register($"{DeviceName}_ip", "127.0.0.1", "IP Address");
     variableRegistry.Register($"{DeviceName}_port", 6742, "Port", 1024, 65535);
     variableRegistry.Register($"{DeviceName}_ignore_direct", false, "Ignore Direct mode");
     variableRegistry.Register($"{DeviceName}_use_periph_logo", true, "Use peripheral logo for unknown leds");
 }
Exemplo n.º 5
0
 public ExampleEffect()
 {
     ID         = "ExampleCSScript";
     Properties = new VariableRegistry();
     Properties.Register("keys", DefaultKeys, "Main Keys");
     Properties.Register("foregroundColour", new RealColor(Color.Red), "Foreground Colour");
     Properties.Register("backgroundColour", new RealColor(Color.Black), "Background Colour");
 }
Exemplo n.º 6
0
        protected override void RegisterVariables(VariableRegistry variableRegistry)
        {
            var devKeysEnumAsEnumerable = Enum.GetValues(typeof(DeviceKeys)).Cast <DeviceKeys>();

            variableRegistry.Register($"{DeviceName}_devicekey", DeviceKeys.Peripheral_Logo, "Key to Use", devKeysEnumAsEnumerable.Max(), devKeysEnumAsEnumerable.Min());
            variableRegistry.Register($"{DeviceName}_send_delay", 35, "Send delay (ms)");
            variableRegistry.Register($"{DeviceName}_IP", "", "YeeLight IP(s)", null, null, "Comma separated IPv4 or IPv6 addresses.");
            variableRegistry.Register($"{DeviceName}_auto_discovery", false, "Auto-discovery", null, null, "Enable this and empty out the IP field to auto-discover lights.");
        }
Exemplo n.º 7
0
 public VariableRegistry GetRegisteredVariables()
 {
     if (default_registry == null)
     {
         default_registry = new VariableRegistry();
         default_registry.Register($"{devicename}_scalar_r", 100, "Red Scalar", 100, 0);
         default_registry.Register($"{devicename}_scalar_g", 100, "Green Scalar", 100, 0);
         default_registry.Register($"{devicename}_scalar_b", 100, "Blue Scalar", 100, 0, "In percent");
     }
     return(default_registry);
 }
Exemplo n.º 8
0
 public VariableRegistry GetRegisteredVariables()
 {
     if (default_registry == null)
     {
         default_registry = new VariableRegistry();
         default_registry.Register($"{devicename}_custom_pid", false, "Use Custom PID");
         default_registry.Register($"{devicename}_pid", 0, "Device PID: 0x", flags: VariableFlags.UseHEX);
         default_registry.Register($"{devicename}_length", true, "Use 12 byte data");
     }
     return(default_registry);
 }
Exemplo n.º 9
0
        public VariableRegistry GetRegisteredVariables()
        {
            if (default_registry == null)
            {
                default_registry = new VariableRegistry();
                default_registry.Register($"{devicename}_devicekey", DeviceKeys.Peripheral, "Key to Use", DeviceKeys.MOUSEPADLIGHT15, DeviceKeys.Peripheral);
                default_registry.Register($"{devicename}_send_delay", 100, "Send delay (ms)");
                default_registry.Register($"{devicename}_IP", "0.0.0.0", "YeeLight IP");
            }

            return(default_registry);
        }
Exemplo n.º 10
0
        public VariableRegistry GetRegisteredVariables()
        {
            if (default_registry == null)
            {
                default_registry = new VariableRegistry();
                default_registry.Register($"{devicename}_use_smoothing", true, "Use Smoothing");
                default_registry.Register($"{devicename}_send_delay", 50, "Send delay (ms)");
                default_registry.Register($"{devicename}_orb_ids", "1", "Orb IDs", null, null, "For multiple IDs separate with comma");
            }

            return(default_registry);
        }
Exemplo n.º 11
0
 public VariableRegistry GetRegisteredVariables()
 {
     if (default_registry == null)
     {
         default_registry = new VariableRegistry();
         default_registry.Register($"{devicename}_restore_dualshock", new Aurora.Utils.RealColor(System.Drawing.Color.FromArgb(255, 0, 0, 255)), "Color", new Aurora.Utils.RealColor(System.Drawing.Color.FromArgb(255, 255, 255, 255)), new Aurora.Utils.RealColor(System.Drawing.Color.FromArgb(0, 0, 0, 0)), "Set restore color for your DS4 Controller");
         default_registry.Register($"{devicename}_disconnect_when_stop", false, "Disconnect when Stopping");
         default_registry.Register($"{devicename}_auto_connect", true, "Auto connect");
         default_registry.Register($"{devicename}_LowBattery_threshold", 20, "Low battery threshold", 100, 0, "In percent. To deactivate set to 0");
     }
     return(default_registry);
 }
Exemplo n.º 12
0
        public VariableRegistry GetRegisteredVariables()
        {
            if (default_registry == null)
            {
                default_registry = new VariableRegistry();
                default_registry.Register($"{devicename}_enable_generic", true, "Enable Generic support");
                default_registry.Register($"{devicename}_enable_ryos", true, "Enable Ryos support");
                default_registry.Register($"{devicename}_restore_fallback", new Aurora.Utils.RealColor(System.Drawing.Color.FromArgb(255, 0, 0, 255)), "Color", new Aurora.Utils.RealColor(System.Drawing.Color.FromArgb(255, 255, 255, 255)), new Aurora.Utils.RealColor(System.Drawing.Color.FromArgb(0, 0, 0, 0)), "Set restore color for your generic roccat devices");
            }

            return(default_registry);
        }
Exemplo n.º 13
0
 public Headset()
 {
     DefaultKeys = new KeySequence(this.keys);
     ID          = "G933 LGS";
     Properties  = new VariableRegistry();
     Properties.Register("keys", DefaultKeys, "Main Keys");
     Properties.Register("foregroundColour", new RealColor(Color.Lime), "Foreground Colour");
     Properties.Register("backgroundColour", new RealColor(Color.Orange), "Background Colour");
     Properties.Register("chargingColour", new RealColor(Color.Cyan), "Charging Foreground Colour");
     Properties.Register("chargingBGColour", new RealColor(Color.Orange), "Charging Background Colour");
     //Can't get this working : allows user to set percent effect type https://github.com/antonpup/Aurora/wiki/T_Aurora_Settings_PercentEffectType
     //Properties.Register("effectType", PercentEffectType.Progressive_Gradual, "Effect Type");
 }
Exemplo n.º 14
0
        protected override void RegisterVariables(VariableRegistry local)
        {
            //hack to not have to reference wpf stuff to get the Media.Color :(
            var black = new RealColor();

            black.SetDrawingColor(Color.Black);
            var white = new RealColor();

            white.SetDrawingColor(Color.White);

            local.Register($"{DeviceName}_color", black, "Default Color", white, black);
            local.Register($"{DeviceName}_override", false, "Override DLL");
            local.Register($"{DeviceName}_dlltype", DLLType.LGS, "DLL Type");
        }
Exemplo n.º 15
0
        public VariableRegistry GetRegisteredVariables()
        {
            if (default_registry == null)
            {
                var devKeysEnumAsEnumerable = Enum.GetValues(typeof(DeviceKeys)).Cast <DeviceKeys>();

                default_registry = new VariableRegistry();
                default_registry.Register($"{devicename}_devicekey", DeviceKeys.Peripheral_Logo, "Key to Use", devKeysEnumAsEnumerable.Max(), devKeysEnumAsEnumerable.Min());
                default_registry.Register($"{devicename}_send_delay", 35, "Send delay (ms)");
                default_registry.Register($"{devicename}_IP", "0.0.0.0", "YeeLight IP", null, null, "If set to 0.0.0.0 and auto-discovery is enabled, it will try to discover a YeeLight and connect to it.");
                default_registry.Register($"{devicename}_auto_discovery", false, "Auto-discovery", null, null, "Enable this and set IP to 0.0.0.0 to auto-discover a light.");
            }

            return(default_registry);
        }
Exemplo n.º 16
0
 public VariableRegistry GetRegisteredVariables()
 {
     if (default_registry == null)
     {
         default_registry = new VariableRegistry();
         default_registry.Register($"{devicename}_monochrome_mode", false, "Monochrome Mode");
     }
     return(default_registry);
 }
Exemplo n.º 17
0
 public VariableRegistry GetRegisteredVariables()
 {
     if (default_registry == null)
     {
         default_registry = new VariableRegistry();
         default_registry.Register("esp8266_devicekey", DeviceKeys.Peripheral, "Key to Use", DeviceKeys.MOUSEPADLIGHT15, DeviceKeys.Peripheral);
         default_registry.Register("esp8266_wifi_enable", false, "Use WiFi");
         default_registry.Register("esp8266_wifi", "", "ESP8266 IP Adresses (Comma separated)");
         default_registry.Register("esp8266_wifi_port_tcp", 1337, "ESP8266 TCP Port");
         default_registry.Register("esp8266_wifi_port_udp", 1337, "ESP8266 UDP Port");
         default_registry.Register("esp8266_com_enable", false, "Use Serial Port (USB)");
         default_registry.Register("esp8266_com", "", "Serial Ports (Comma separated)");
         default_registry.Register("esp8266_com_baud", 74880, "Baud Rate", 0, 2000000);
         default_registry.Register("esp8266_auto_switch", true, "Automatically switch to Aurora Mode");
         default_registry.Register("esp8266_restore_mode", Mode.DefaultMode, "Mode to return to when disconnecting");
     }
     return(default_registry);
 }
Exemplo n.º 18
0
        /// <inheritdoc />
        public VariableRegistry GetRegisteredVariables()
        {
            if (defaultRegistry != null)
            {
                return(defaultRegistry);
            }

            defaultRegistry = new VariableRegistry();
            defaultRegistry.Register($"{DeviceName}_enable_unsupported_version", false, "Enable Unsupported Asus SDK Version");
            return(defaultRegistry);
        }
Exemplo n.º 19
0
 protected override void RegisterVariables(VariableRegistry variableRegistry)
 {
     variableRegistry.Register($"{DeviceName}_restore_color", new RealColor(Color.FromArgb(255, 0, 0, 255)), "Restore Color");
     variableRegistry.Register($"{DeviceName}_brightness", 50, "Brightness", 100, 1, "In percent");
     variableRegistry.Register($"{DeviceName}_layout", Layout.ANSI, "Layout", remark: "All options require a restart of the device integration.");
     variableRegistry.Register($"{DeviceName}_scalar_r", 255, "Red Scalar", 255, 0);
     variableRegistry.Register($"{DeviceName}_scalar_g", 255, "Green Scalar", 255, 0);
     variableRegistry.Register($"{DeviceName}_scalar_b", 255, "Blue Scalar", 255, 0);
     variableRegistry.Register($"{DeviceName}_sleep", 0, "Delay", 100, 0);
 }
Exemplo n.º 20
0
 public VariableRegistry GetRegisteredVariables()
 {
     if (default_registry == null)
     {
         default_registry = new VariableRegistry();
         foreach (ISSDevice device in AllDevices)
         {
             default_registry.Register($"UnifiedHID_{device.GetType().Name}_enable", false, $"Enable {(string.IsNullOrEmpty(device.PrettyName) ? device.GetType().Name : device.PrettyName)} in {devicename}");
         }
     }
     return(default_registry);
 }
Exemplo n.º 21
0
 protected override void RegisterVariables(VariableRegistry variableRegistry)
 {
     variableRegistry.Register($"{DeviceName}_scalar_r", 100, "Red Scalar", 100, 0);
     variableRegistry.Register($"{DeviceName}_scalar_g", 100, "Green Scalar", 100, 0);
     variableRegistry.Register($"{DeviceName}_scalar_b", 100, "Blue Scalar", 100, 0, "In percent");
 }
Exemplo n.º 22
0
 protected override void RegisterVariables(VariableRegistry variableRegistry)
 {
     variableRegistry.Register($"{DeviceName}_query", false, "Query Razer devices", remark: "This is slow so it is disabled by default. Can be useful for debugging");
 }
Exemplo n.º 23
0
 protected override void RegisterVariables(VariableRegistry local)
 {
     local.Register($"{DeviceName}_devicekey", DeviceKeys.Peripheral, "Key to Use", DeviceKeys.MOUSEPADLIGHT15, DeviceKeys.Peripheral_Logo);
     local.Register($"{DeviceName}_disconnect_when_stop", false, "Disconnect when Stopping");
 }
Exemplo n.º 24
0
 protected override void RegisterVariables(VariableRegistry local)
 {
     local.Register($"{DeviceName}_devicekey", DeviceKeys.Peripheral, "Key to Use", DeviceKeys.MOUSEPADLIGHT15, DeviceKeys.Peripheral_Logo);
 }