fix inverted setting (meaning was inverted too)
[enigma2.git] / lib / python / Components / InputDevice.py
index 1c2598d26a1779a76a6cbf77d6976a30e9e117cd..f800f302c58874555df81ae02f09709d2292a2b2 100644 (file)
@@ -1,26 +1,33 @@
+from config import config                              #global config instance
+
 from config import configElement
-from config import config
+from config import ConfigSubsection
+from config import ConfigSlider
+from config import configSelection
 
 class inputDevices:
        def __init__(self):
                pass
        def setRepeat(self, value):
+               #print "setup rc repeat"
                pass
        def setDelay(self, value):
+               #print "setup rc delay"
                pass
 
 def InitInputDevices():
-       config.inputDevices = config;
-       config.inputDevices.repeat = configElement("config.inputDevices.repeat", config.Slider, 10);
-       config.inputDevices.delay = configElement("config.inputDevices.delay", config.Slider, 10);
+       config.inputDevices = ConfigSubsection();
+       config.inputDevices.repeat = configElement("config.inputDevices.repeat", ConfigSlider, 5, "");
+       config.inputDevices.delay = configElement("config.inputDevices.delay", ConfigSlider, 4, "");
+
+       #this instance anywhere else needed?    
+       iDevices = inputDevices();      
        
        def inputDevicesRepeatChanged(configElement):
-               print "setup rc repeat"
-               #inputDevices.setRepeat(configElement.value);
+               iDevices.setRepeat(configElement.value);
 
        def inputDevicesDelayChanged(configElement):
-               print "setup rc delay"
-               #inputDevices.setDelay(configElement.value);
+               iDevices.setDelay(configElement.value);
 
        # this will call the "setup-val" initial
        config.inputDevices.repeat.addNotifier(inputDevicesRepeatChanged);