Add KeyActionFactory. Add compact length related methods to UhkBuffer. Add KeyActions.

This commit is contained in:
László Monda
2016-04-01 01:55:34 +02:00
parent ae6342911c
commit adca007cac
6 changed files with 110 additions and 65 deletions

View File

@@ -9,9 +9,6 @@ let writer = new UhkBuffer();
let uhkConfig = JSON.parse(fs.readFileSync('uhk-config.json'));
let keyActions = uhkConfig.keymaps[0].layers[0].modules[0].keyActions;
new SwitchLayerAction().fromJsObject({
keyActionType: 'switchLayer',
layerId: 10022
});
let keyActionObjects: KeyActions = new KeyActions().fromJsObject(keyActions);
fs.writeFileSync('uhk-config.bin', writer.buffer);