mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-27 06:29:25 -04:00
Add VM "I/O devices", clock, mouse as demo
This commit is contained in:
parent
c969b51dee
commit
aebcfde492
8 changed files with 151 additions and 2 deletions
src
|
@ -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'});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue