aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/InputDevice.py
blob: 1c2598d26a1779a76a6cbf77d6976a30e9e117cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from config import configElement
from config import config

class inputDevices:
	def __init__(self):
		pass
	def setRepeat(self, value):
		pass
	def setDelay(self, value):
		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);
	
	def inputDevicesRepeatChanged(configElement):
		print "setup rc repeat"
		#inputDevices.setRepeat(configElement.value);

	def inputDevicesDelayChanged(configElement):
		print "setup rc delay"
		#inputDevices.setDelay(configElement.value);

	# this will call the "setup-val" initial
	config.inputDevices.repeat.addNotifier(inputDevicesRepeatChanged);
	config.inputDevices.delay.addNotifier(inputDevicesDelayChanged);