Use arrays instead of object properties wherever possible.

This commit is contained in:
László Monda
2016-03-18 18:57:27 +01:00
parent 031718fb21
commit 74c928622b
+71 -55
View File
@@ -1,74 +1,90 @@
{ {
"hardwareId": "UHK60", "hardwareId": "UHK60",
"dataModelVersion": 0, "dataModelVersion": 0,
"moduleConfigurations": { "moduleConfigurations": [
"keyClusterLeft": { {
"moduleName": "keyClusterLeft",
"acceleration": 5, "acceleration": 5,
"maxSpeed": 200 "maxSpeed": 200
} }
}, ],
"keymaps": { "keymaps": [
"QWERTY": { {
"name": "QWERTY",
"isDefault": true, "isDefault": true,
"abbreviation": "QTY", "abbreviation": "QTY",
"modules": { "modules": [
"uhkLeft": { {
"baseLayer": { "name": "uhkLeft",
"pointerRole": "move", "layers": [
"keyActions": [ {
{ "pointerRole": "move",
"actionType": "key", "keyActions": [
"scancode": 120, {
"modifierMask": 16 "actionType": "key",
}, "scancode": 120,
{ "modifierMask": 16
"actionType": "dualRoleKey", },
"scancode": 111, {
"longPressAction": "mod" "actionType": "dualRoleKey",
}, "scancode": 111,
{ "longPressAction": "mod"
"actionType": "mouse", },
"mouseAction": "scrollDown" {
}, "actionType": "mouse",
{ "mouseAction": "scrollDown"
"actionType": "playMacro", },
"macro": "My address" {
}, "actionType": "playMacro",
{ "macro": "My address"
"actionType": "switchKeymap", },
"keymap": "Dvorak" {
} "actionType": "switchKeymap",
] "keymap": "Dvorak"
}, }
]
},
{},
{},
{}
]
},
{
"name": "uhkRight"
},
{
"name": "keyClusterLeft",
"layers": [
{
"pointerRole": "scroll",
"keyActions": []
}
],
"modLayer": {}, "modLayer": {},
"fnLayer": {}, "fnLayer": {},
"mouseLayer": {} "mouseLayer": {}
}, },
"uhkRight": {}, {
"keyClusterLeft": { "name": "trackballRight",
"baseLayer": { "layers": [
"pointerRole": "scroll", {
"keyActions": [] "pointerRole": "move",
}, "keyActions": []
"modLayer": {}, }
"fnLayer": {}, ],
"mouseLayer": {}
},
"trackballRight": {
"baseLayer": {
"pointerRole": "move",
"keyActions": []
},
"modLayer": {}, "modLayer": {},
"fnLayer": {}, "fnLayer": {},
"mouseLayer": {} "mouseLayer": {}
} }
} ]
}, },
"Dvorak": {} {
}, "name": "Dvorak"
"macros": { }
"My address": { ],
"macros": [
{
"name": "My address",
"isPrivate": true, "isPrivate": true,
"isLooped": false, "isLooped": false,
"macroActions": [ "macroActions": [
@@ -128,5 +144,5 @@
} }
] ]
} }
} ]
} }