Skip to content

Commit

Permalink
update docs. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Jan 4, 2024
1 parent 66ace1d commit becefa8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 42 deletions.
21 changes: 0 additions & 21 deletions Site/docs/api/Node Event/Node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

**类型:** 节点事件。
Expand Down

0 comments on commit becefa8

Please sign in to comment.