add blinking dish-picture if positioner is moving (we need a function which returns...
[enigma2.git] / lib / python / Components / InputDevice.py
1 from config import config                               #global config instance
2
3 from config import configElement
4 from config import ConfigSubsection
5 from config import ConfigSlider
6 from config import configSelection
7
8 class inputDevices:
9         def __init__(self):
10                 pass
11         def setRepeat(self, value):
12                 #print "setup rc repeat"
13                 pass
14         def setDelay(self, value):
15                 #print "setup rc delay"
16                 pass
17
18 def InitInputDevices():
19         config.inputDevices = ConfigSubsection();
20         config.inputDevices.repeat = configElement("config.inputDevices.repeat", ConfigSlider, 5, "");
21         config.inputDevices.delay = configElement("config.inputDevices.delay", ConfigSlider, 4, "");
22
23         #this instance anywhere else needed?    
24         iDevices = inputDevices();      
25         
26         def inputDevicesRepeatChanged(configElement):
27                 iDevices.setRepeat(configElement.value);
28
29         def inputDevicesDelayChanged(configElement):
30                 iDevices.setDelay(configElement.value);
31
32         # this will call the "setup-val" initial
33         config.inputDevices.repeat.addNotifier(inputDevicesRepeatChanged);
34         config.inputDevices.delay.addNotifier(inputDevicesDelayChanged);