mirror of
https://github.com/erjiang/huion-keys.git
synced 2026-06-13 22:40:49 +03:00
check if Hold is in the config
This commit is contained in:
@@ -117,6 +117,7 @@ def read_config(config_file):
|
|||||||
else:
|
else:
|
||||||
print("[WARN] unrecognized regular binding '%s'" % (binding,))
|
print("[WARN] unrecognized regular binding '%s'" % (binding,))
|
||||||
#Same, but for buttons that should be held down
|
#Same, but for buttons that should be held down
|
||||||
|
if 'Hold' in CONFIG:
|
||||||
for binding in CONFIG['Hold']:
|
for binding in CONFIG['Hold']:
|
||||||
if binding.isdigit():
|
if binding.isdigit():
|
||||||
BUTTON_BINDINGS_HOLD[int(binding)] = CONFIG['Hold'][binding].encode('utf-8')
|
BUTTON_BINDINGS_HOLD[int(binding)] = CONFIG['Hold'][binding].encode('utf-8')
|
||||||
|
|||||||
Reference in New Issue
Block a user