Identify keymaps and macros by numeric IDs. Use keystroke naming instead of key.

This commit is contained in:
László Monda
2016-03-20 01:39:49 +01:00
parent 4f052b3789
commit 01ca18ba34

View File

@@ -10,6 +10,7 @@
], ],
"keymaps": [ "keymaps": [
{ {
"id": 0,
"name": "QWERTY", "name": "QWERTY",
"isDefault": true, "isDefault": true,
"abbreviation": "QTY", "abbreviation": "QTY",
@@ -21,12 +22,15 @@
"pointerRole": "move", "pointerRole": "move",
"keyActions": [ "keyActions": [
{ {
"actionType": "key", "actionType": "none"
},
{
"actionType": "keystroke",
"scancode": 120, "scancode": 120,
"modifierMask": 16 "modifierMask": 16
}, },
{ {
"actionType": "dualRoleKey", "actionType": "dualRoleKeystroke",
"scancode": 111, "scancode": 111,
"longPressAction": "mod" "longPressAction": "mod"
}, },
@@ -36,11 +40,11 @@
}, },
{ {
"actionType": "playMacro", "actionType": "playMacro",
"macro": "My address" "macroId": 0
}, },
{ {
"actionType": "switchKeymap", "actionType": "switchKeymap",
"keymap": "Dvorak" "keymapId": 1
} }
] ]
}, },
@@ -79,11 +83,13 @@
] ]
}, },
{ {
"id": 1,
"name": "Dvorak" "name": "Dvorak"
} }
], ],
"macros": [ "macros": [
{ {
"id": 0,
"name": "My address", "name": "My address",
"isPrivate": true, "isPrivate": true,
"isLooped": false, "isLooped": false,