mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Adding JSDoc and removing extension manager gdx uncommenting.
This commit is contained in:
parent
da3fc930b1
commit
8da82cfe01
2 changed files with 8 additions and 4 deletions
|
@ -19,7 +19,7 @@ const Scratch3Ev3Blocks = require('../extensions/scratch3_ev3');
|
||||||
const Scratch3MakeyMakeyBlocks = require('../extensions/scratch3_makeymakey');
|
const Scratch3MakeyMakeyBlocks = require('../extensions/scratch3_makeymakey');
|
||||||
// todo: only load this extension once we have a compatible way to load its
|
// todo: only load this extension once we have a compatible way to load its
|
||||||
// Vernier module dependency.
|
// Vernier module dependency.
|
||||||
const Scratch3GdxForBlocks = require('../extensions/scratch3_gdx_for');
|
// const Scratch3GdxForBlocks = require('../extensions/scratch3_gdx_for');
|
||||||
|
|
||||||
const builtinExtensions = {
|
const builtinExtensions = {
|
||||||
pen: Scratch3PenBlocks,
|
pen: Scratch3PenBlocks,
|
||||||
|
@ -31,8 +31,8 @@ const builtinExtensions = {
|
||||||
videoSensing: Scratch3VideoSensingBlocks,
|
videoSensing: Scratch3VideoSensingBlocks,
|
||||||
speech2text: Scratch3Speech2TextBlocks,
|
speech2text: Scratch3Speech2TextBlocks,
|
||||||
ev3: Scratch3Ev3Blocks,
|
ev3: Scratch3Ev3Blocks,
|
||||||
makeymakey: Scratch3MakeyMakeyBlocks,
|
makeymakey: Scratch3MakeyMakeyBlocks
|
||||||
gdxfor: Scratch3GdxForBlocks
|
// gdxfor: Scratch3GdxForBlocks
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -224,7 +224,11 @@ class GdxFor {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: JSDoc
|
/**
|
||||||
|
* Handler for sensor value changes from the goforce device.
|
||||||
|
* @param {object} sensor - goforce device sensor whose value has changed
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
_onSensorValueChanged (sensor) {
|
_onSensorValueChanged (sensor) {
|
||||||
let val = sensor.value;
|
let val = sensor.value;
|
||||||
const framesPerSec = 1000 / this._runtime.currentStepTime;
|
const framesPerSec = 1000 / this._runtime.currentStepTime;
|
||||||
|
|
Loading…
Reference in a new issue