Add Serializable.ts and KeystrokeAction.ts

This commit is contained in:
László Monda
2016-03-24 20:56:27 +01:00
parent 25b7cad4ab
commit 483053a991
3 changed files with 36 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
/// <reference path="UhkBuffer.ts" />
/// <reference path="KeystrokeAction.ts" />
var fs = require('fs');
var buffer = new Buffer(1000);
@@ -150,5 +151,6 @@ function serializeSwitchLayerAction(switchLayerAction) {
}[switchLayerAction] | switchLayerAction.toggle ? SWITCH_LAYER_TOGGLE : 0);
}
new KeystrokeAction();
serializeKeyActions(keyActions);
fs.writeFileSync('uhk-config.bin', buffer);