Add Advanced Input Detection extension by MarkSkecher#2402
Open
XOX-zip wants to merge 3 commits intoTurboWarp:masterfrom
Open
Add Advanced Input Detection extension by MarkSkecher#2402XOX-zip wants to merge 3 commits intoTurboWarp:masterfrom
XOX-zip wants to merge 3 commits intoTurboWarp:masterfrom
Conversation
Contributor
|
Try not to close and re-open a PR repeatedly |
Brackets-Coder
requested changes
Feb 15, 2026
| @@ -0,0 +1,556 @@ | |||
| // Name: Advanced Input | |||
| // ID: markskecherinput | |||
| // Description: 高级输入检测扩展,支持鼠标滚轮、鼠标按键、键盘组合键和输入事件检测. | |||
Contributor
There was a problem hiding this comment.
Description must be in english
Comment on lines
+353
to
+362
| "空格键", | ||
| "回车键", | ||
| "退格键", | ||
| "删除键", | ||
| "制表键", | ||
| "逃逸键", | ||
| "上箭头", | ||
| "下箭头", | ||
| "左箭头", | ||
| "右箭头", |
Contributor
There was a problem hiding this comment.
These keys must be in English
Comment on lines
+423
to
+433
| this.wheelDirection === (args.DIRECTION === "向上" ? "up" : "down") | ||
| ); | ||
| } | ||
|
|
||
| getWheelDelta() { | ||
| return this.wheelDelta; | ||
| } | ||
|
|
||
| mouseButtonPressed(args) { | ||
| const buttonMap = { 左: "left", 中: "middle", 右: "right" }; | ||
| return this.mouseButtons[buttonMap[args.BUTTON]] || false; |
Contributor
There was a problem hiding this comment.
All user-facing names must be in English
They'll get translated by Scratch or the browser later
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extension Information
markskecherinputDescription
This extension provides advanced input detection capabilities for Scratch projects, including:
Features
Testing
Additional Notes
This extension enhances the default Scratch input capabilities by providing more detailed and flexible input detection options for advanced projects.