From 031718fb216c768133239bd78c2ecc2c95b42ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Fri, 18 Mar 2016 18:04:02 +0100 Subject: [PATCH] Add the JSON of the UHK configuration to be serialized to the EEPROM. --- model/uhkConfig.json | 132 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 model/uhkConfig.json diff --git a/model/uhkConfig.json b/model/uhkConfig.json new file mode 100644 index 00000000..925c3cc6 --- /dev/null +++ b/model/uhkConfig.json @@ -0,0 +1,132 @@ +{ + "hardwareId": "UHK60", + "dataModelVersion": 0, + "moduleConfigurations": { + "keyClusterLeft": { + "acceleration": 5, + "maxSpeed": 200 + } + }, + "keymaps": { + "QWERTY": { + "isDefault": true, + "abbreviation": "QTY", + "modules": { + "uhkLeft": { + "baseLayer": { + "pointerRole": "move", + "keyActions": [ + { + "actionType": "key", + "scancode": 120, + "modifierMask": 16 + }, + { + "actionType": "dualRoleKey", + "scancode": 111, + "longPressAction": "mod" + }, + { + "actionType": "mouse", + "mouseAction": "scrollDown" + }, + { + "actionType": "playMacro", + "macro": "My address" + }, + { + "actionType": "switchKeymap", + "keymap": "Dvorak" + } + ] + }, + "modLayer": {}, + "fnLayer": {}, + "mouseLayer": {} + }, + "uhkRight": {}, + "keyClusterLeft": { + "baseLayer": { + "pointerRole": "scroll", + "keyActions": [] + }, + "modLayer": {}, + "fnLayer": {}, + "mouseLayer": {} + }, + "trackballRight": { + "baseLayer": { + "pointerRole": "move", + "keyActions": [] + }, + "modLayer": {}, + "fnLayer": {}, + "mouseLayer": {} + } + } + }, + "Dvorak": {} + }, + "macros": { + "My address": { + "isPrivate": true, + "isLooped": false, + "macroActions": [ + { + "actionType": "pressKey", + "scancode": 111 + }, + { + "actionType": "holdKey", + "scancode": 111 + }, + { + "actionType": "releaseKey", + "scancode": 111 + }, + { + "actionType": "pressModifiers", + "modifierMask": 111 + }, + { + "actionType": "holdModifiers", + "modifierMask": 111 + }, + { + "actionType": "releaseModifiers", + "modifierMask": 111 + }, + { + "actionType": "pressMouseButtons", + "mouseButtonsMask": 9 + }, + { + "actionType": "holdMouseButtons", + "mouseButtonsMask": 9 + }, + { + "actionType": "releaseMouseButtons", + "mouseButtonsMask": 9 + }, + { + "actionType": "moveMouse", + "x": 123, + "y": 123 + }, + { + "actionType": "scrollMouse", + "x": 123, + "y": 123 + }, + { + "actionType": "delay", + "delay": "1000" + }, + { + "actionType": "text", + "text": "this is a text" + } + ] + } + } +}