Add VM "I/O devices", clock, mouse as demo

This commit is contained in:
Tim Mickel 2016-08-15 21:37:36 -04:00
parent c969b51dee
commit aebcfde492
8 changed files with 151 additions and 2 deletions

View file

@ -51,6 +51,14 @@ VirtualMachine.prototype.getPlaygroundData = function () {
this.vmWorker.postMessage({method: 'getPlaygroundData'});
};
VirtualMachine.prototype.postIOData = function (device, data) {
this.vmWorker.postMessage({
method: 'postIOData',
device: device,
data: data
});
};
VirtualMachine.prototype.start = function () {
this.vmWorker.postMessage({method: 'start'});
};