mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -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');
|
||||
// todo: only load this extension once we have a compatible way to load its
|
||||
// Vernier module dependency.
|
||||
const Scratch3GdxForBlocks = require('../extensions/scratch3_gdx_for');
|
||||
// const Scratch3GdxForBlocks = require('../extensions/scratch3_gdx_for');
|
||||
|
||||
const builtinExtensions = {
|
||||
pen: Scratch3PenBlocks,
|
||||
|
@ -31,8 +31,8 @@ const builtinExtensions = {
|
|||
videoSensing: Scratch3VideoSensingBlocks,
|
||||
speech2text: Scratch3Speech2TextBlocks,
|
||||
ev3: Scratch3Ev3Blocks,
|
||||
makeymakey: Scratch3MakeyMakeyBlocks,
|
||||
gdxfor: Scratch3GdxForBlocks
|
||||
makeymakey: Scratch3MakeyMakeyBlocks
|
||||
// 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) {
|
||||
let val = sensor.value;
|
||||
const framesPerSec = 1000 / this._runtime.currentStepTime;
|
||||
|
|
Loading…
Reference in a new issue