mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-28 23:19:03 -04:00
First draft of video IO device
This commit is contained in:
parent
cd7e03f0f6
commit
eef88f6c2d
3 changed files with 354 additions and 157 deletions
src/engine
|
@ -15,6 +15,7 @@ const DeviceManager = require('../io/deviceManager');
|
|||
const Keyboard = require('../io/keyboard');
|
||||
const Mouse = require('../io/mouse');
|
||||
const MouseWheel = require('../io/mouseWheel');
|
||||
const Video = require('../io/video');
|
||||
|
||||
const defaultBlockPackages = {
|
||||
scratch3_control: require('../blocks/scratch3_control'),
|
||||
|
@ -260,7 +261,8 @@ class Runtime extends EventEmitter {
|
|||
deviceManager: new DeviceManager(),
|
||||
keyboard: new Keyboard(this),
|
||||
mouse: new Mouse(this),
|
||||
mouseWheel: new MouseWheel(this)
|
||||
mouseWheel: new MouseWheel(this),
|
||||
video: new Video(this)
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue