Set value to digital projector feature when changing it in UI

This commit is contained in:
mmcw-dev 2019-02-23 22:19:03 -05:00
parent 7fd449724b
commit bf148c6784
2 changed files with 10 additions and 0 deletions

View File

@ -75,6 +75,7 @@ gui.updateProj = function (t) {
t.value = mcopy.state.projector.pos;
gui.counterFormat(t);
}
proj.setValue(t.value);
};
gui.updateState = function () {
'use strict';

View File

@ -71,4 +71,13 @@ proj.listen = function () {
});
};
proj.setValue = function (val) {
'use strict';
var obj = {
val: val,
id : uuid.v4()
};
ipcRenderer.sendSync('proj', obj);
}
module.exports = proj;