From becefa88598a13949a27ebc38159b2832f86143e Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 4 Jan 2024 15:20:09 +0800 Subject: [PATCH] update docs. [skip CI] --- Site/docs/api/Node Event/Node.mdx | 21 ------------------- .../current/api/Node Event/Node.mdx | 21 ------------------- 2 files changed, 42 deletions(-) diff --git a/Site/docs/api/Node Event/Node.mdx b/Site/docs/api/Node Event/Node.mdx index 6a18b4ec8..0e91534fc 100644 --- a/Site/docs/api/Node Event/Node.mdx +++ b/Site/docs/api/Node Event/Node.mdx @@ -390,27 +390,6 @@ Triggers after setting `node.controllerEnabled = true`. | controllerId | integer | The controller id, incrementing from 0 when multiple controllers connected. | | buttonName | Keyboard.KeyName | The name of the button that was released. | -## ButtonPressed - -**Type:** Node Event. - -**Description:** - -  The ButtonPressed slot is triggered when a game controller button is pressed. -Triggers after setting `node.controllerEnabled = true`. - -**Signature:** -```tl -["ButtonPressed"]: function(controllerId: integer, buttonName: Keyboard.KeyName) -``` - -**Parameters:** - -| Parameter | Type | Description | -| --- | --- | --- | -| controllerId | integer | The controller id, incrementing from 0 when multiple controllers connected. | -| buttonName | Keyboard.KeyName | The name of the button that was pressed. | - ## Axis **Type:** Node Event. diff --git a/Site/i18n/zh-Hans/docusaurus-plugin-content-docs/current/api/Node Event/Node.mdx b/Site/i18n/zh-Hans/docusaurus-plugin-content-docs/current/api/Node Event/Node.mdx index ebb322742..6f225e5d4 100644 --- a/Site/i18n/zh-Hans/docusaurus-plugin-content-docs/current/api/Node Event/Node.mdx +++ b/Site/i18n/zh-Hans/docusaurus-plugin-content-docs/current/api/Node Event/Node.mdx @@ -390,27 +390,6 @@ end) | controllerId | integer | 控制器ID,当有多个控制器连接时从0开始递增。 | | buttonName | Keyboard.KeyName | 被释放的按钮名称。 | -## ButtonPressed - -**类型:** 节点事件。 - -**描述:** - -  当游戏控制器按钮被按压时触发ButtonPressed事件。 -在设置`node.controllerEnabled = true`之后触发。 - -**签名:** -```tl -["ButtonPressed"]: function(controllerId: integer, buttonName: Keyboard.KeyName) -``` - -**参数:** - -| 参数名 | 类型 | 描述 | -| --- | --- | --- | -| controllerId | integer | 控制器ID,当有多个控制器连接时从0开始递增。 | -| buttonName | Keyboard.KeyName | 被按压的按钮名称。 | - ## Axis **类型:** 节点事件。