mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Resolve JSDoc lint errors
This commit is contained in:
parent
8b87b36ed3
commit
279a9560af
2 changed files with 8 additions and 7 deletions
|
@ -40,7 +40,7 @@ Keyboard.prototype._scratchKeyToKeyCode = function (keyName) {
|
|||
|
||||
/**
|
||||
* Convert a DOM keyCode into a Scratch key name.
|
||||
* @param {number} Key code from DOM event.
|
||||
* @param {number} keyCode Key code from DOM event.
|
||||
* @return {Any} Scratch key argument.
|
||||
* @private
|
||||
*/
|
||||
|
@ -61,7 +61,7 @@ Keyboard.prototype._keyCodeToScratchKey = function (keyCode) {
|
|||
|
||||
/**
|
||||
* Keyboard DOM event handler.
|
||||
* @param {object} DOM event.
|
||||
* @param {object} data DOM event.
|
||||
* @return {void}
|
||||
*/
|
||||
Keyboard.prototype.postData = function (data) {
|
||||
|
@ -88,8 +88,8 @@ Keyboard.prototype.postData = function (data) {
|
|||
|
||||
/**
|
||||
* Get key down state for a specified Scratch key name.
|
||||
* @param {Any} Scratch key argument.
|
||||
* @return {boolean}
|
||||
* @param {Any} key Scratch key argument.
|
||||
* @return {boolean} Is the specified key down?
|
||||
*/
|
||||
Keyboard.prototype.getKeyIsDown = function (key) {
|
||||
if (key == 'any') {
|
||||
|
|
|
@ -14,9 +14,10 @@ function Mouse (runtime) {
|
|||
|
||||
/**
|
||||
* Activate "event_whenthisspriteclicked" hats if needed.
|
||||
* @param {int} X position to be sent to the renderer.
|
||||
* @param {int} Y position to be sent to the renderer.
|
||||
* @param {int} x X position to be sent to the renderer.
|
||||
* @param {int} y Y position to be sent to the renderer.
|
||||
* @return {void}
|
||||
* @private
|
||||
*/
|
||||
Mouse.prototype._activateClickHats = function (x, y) {
|
||||
if (this.runtime.renderer) {
|
||||
|
@ -35,7 +36,7 @@ Mouse.prototype._activateClickHats = function (x, y) {
|
|||
|
||||
/**
|
||||
* Mouse DOM event handler.
|
||||
* @param {object} DOM event.
|
||||
* @param {object} data DOM event.
|
||||
* @return {void}
|
||||
*/
|
||||
Mouse.prototype.postData = function(data) {
|
||||
|
|
Loading…
Reference in a new issue