mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-30 08:01:18 -04:00
Merge pull request #549 from cwillisf/device-manager-client
Device manager client
This commit is contained in:
commit
3970883e45
4 changed files with 358 additions and 0 deletions
src/engine
|
@ -5,6 +5,7 @@ const Thread = require('./thread');
|
|||
|
||||
// Virtual I/O devices.
|
||||
const Clock = require('../io/clock');
|
||||
const DeviceManager = require('../io/deviceManager');
|
||||
const Keyboard = require('../io/keyboard');
|
||||
const Mouse = require('../io/mouse');
|
||||
|
||||
|
@ -160,6 +161,7 @@ class Runtime extends EventEmitter {
|
|||
/** @type {Object.<string, Object>} */
|
||||
this.ioDevices = {
|
||||
clock: new Clock(),
|
||||
deviceManager: new DeviceManager(),
|
||||
keyboard: new Keyboard(this),
|
||||
mouse: new Mouse(this)
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue