start of inputdevice controls
[enigma2.git] / lib / python / Components / InputDevice.py
1 from config import configElement
2 from config import config
3
4 class inputDevices:
5         def __init__(self):
6                 pass
7         def setRepeat(self, value):
8                 pass
9         def setDelay(self, value):
10                 pass
11
12 def InitInputDevices():
13         config.inputDevices = config;
14         config.inputDevices.repeat = configElement("config.inputDevices.repeat", config.Slider, 10);
15         config.inputDevices.delay = configElement("config.inputDevices.delay", config.Slider, 10);
16         
17         def inputDevicesRepeatChanged(configElement):
18                 print "setup rc repeat"
19                 #inputDevices.setRepeat(configElement.value);
20
21         def inputDevicesDelayChanged(configElement):
22                 print "setup rc delay"
23                 #inputDevices.setDelay(configElement.value);
24
25         # this will call the "setup-val" initial
26         config.inputDevices.repeat.addNotifier(inputDevicesRepeatChanged);
27         config.inputDevices.delay.addNotifier(inputDevicesDelayChanged);