from keyids import KEYIDS;
+# these are only informational (for help)...
+from Tools.KeyBindings import addKeyBinding
+
def readKeymap():
p = enigma.eActionMapPtr()
try:
source = open(filename1)
+ filename = filename1
except:
source = open(filename2)
+ filename = filename2
# raise "couldn't open keymap.xml!"
try:
# print context + "::" + mapto + " -> " + device + "." + hex(keyid)
p.bindKey(device, keyid, flags, context, mapto)
+ addKeyBinding(keyid, context, mapto)
parseKeys("generic", cmap)