added the ability to change controls from function keys to letters

This commit is contained in:
DESKTOP-JVKHS7I\Adam 2019-10-05 13:40:59 +05:30
parent 7d78347a4a
commit 3078ab1130

View File

@ -50,7 +50,10 @@ class Control:
"""
s = "\n\nCurrent Mode: " + Control.get()["name"]+"\n"
for c in Control.controls[Control.current]["controls"]:
s += c[0].value + ": " + c[1].name + "\n"
try:
s += c[0].value + ": " + c[1].name + "\n"
except AttributeError:
s += c[0].value + ": " + c[1] + "\n"
return s