add streaming protocols for correct uri handling
[enigma2.git] / lib / python / Components / InputDevice.py
index f800f302c58874555df81ae02f09709d2292a2b2..3c3bd7a1a6ee29bfa54feff09a516201d742e16e 100644 (file)
@@ -1,9 +1,4 @@
-from config import config                              #global config instance
-
-from config import configElement
-from config import ConfigSubsection
-from config import ConfigSlider
-from config import configSelection
+from config import config, ConfigSlider, ConfigSubsection
 
 class inputDevices:
        def __init__(self):
@@ -17,8 +12,8 @@ class inputDevices:
 
 def InitInputDevices():
        config.inputDevices = ConfigSubsection();
-       config.inputDevices.repeat = configElement("config.inputDevices.repeat", ConfigSlider, 5, "");
-       config.inputDevices.delay = configElement("config.inputDevices.delay", ConfigSlider, 4, "");
+       config.inputDevices.repeat = ConfigSlider(default=5, limits=(1, 10))
+       config.inputDevices.delay = ConfigSlider(default=4, limits=(1, 10))
 
        #this instance anywhere else needed?    
        iDevices = inputDevices();