aboutsummaryrefslogtreecommitdiff
path: root/macropad.pyw
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2023-12-04 19:17:06 +0100
committerSébastien Dailly <sebastien@dailly.me>2023-12-04 19:17:06 +0100
commitc27035a029cdcbfb854ea0760fd083b5d8870c6d (patch)
tree5774bbab92e471ebac547e726286cb70b4d3c49b /macropad.pyw
parent78a31a0768b0c2b6232514e5ffbfd26c7901c4b0 (diff)
Use of orderedDict in order to give higher priority to custom layer
Diffstat (limited to 'macropad.pyw')
-rwxr-xr-xmacropad.pyw4
1 files changed, 3 insertions, 1 deletions
diff --git a/macropad.pyw b/macropad.pyw
index 2687065..55bb1cf 100755
--- a/macropad.pyw
+++ b/macropad.pyw
@@ -25,8 +25,10 @@ config_file = path.join(script_path, "config.ini")
config = configparser.ConfigParser(delimiters="=")
config.read(config_file)
+from collections import OrderedDict
+
init_mapping = config["mapping"]
-mapping = dict(init_mapping)
+mapping = OrderedDict(init_mapping)
from queue import Queue
q = Queue()