Skip to content

Commit

Permalink
hide onTouched
Browse files Browse the repository at this point in the history
  • Loading branch information
nighca committed Jul 3, 2024
1 parent bccc791 commit e50f2e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const eventCategory: ToolCategory = {
},
{
label: { en: 'Sensing Events', zh: '感知事件' },
tools: [spx.onClick, spx.onKey, spx.onAnyKey, spx.onTouched]
tools: [spx.onClick, spx.onKey, spx.onAnyKey]
},
{
label: { en: 'Motion Events', zh: '运动事件' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export const onCloned: Tool = {
}
}

// For now `onTouched` is not exposed to the user
// As it behaves strangely in the current implementation, see details in https://github.com/goplus/spx/issues/298
export const onTouched: Tool = {
type: ToolType.method,
callEffect: ToolCallEffect.listen,
Expand All @@ -54,7 +56,7 @@ export const onTouched: Tool = {
},
{
desc: { en: 'By some given sprites', zh: '指定的某些精灵' },
sample: 'onTouched [S1, S2] => {}',
sample: 'onTouched [S1, S2], => {}',
insertText: 'onTouched [${1:}], => {\n\t${2}\n}'
}
]
Expand Down

0 comments on commit e50f2e5

Please sign in to comment.