You can configure input device nodes in the blueprint editor to enable keyboard-based interactions. Currently, the keyboard is the only logic node available for input devices.
Keyboard
The Keyboard node listens for keyboard events.
Scenario: Use the Keyboard node for keyboard-based interactions, such as using the arrow keys to move an image.
Add the Keyboard node to the canvas to view its events, actions, and configuration parameters. For more information about how to add nodes, see Use Logic Nodes.
| Event/Action | Description |
| When any key is pressed | Executes the corresponding action when any key on the keyboard is pressed. |
| When a character key is pressed | Executes the corresponding action when a character key on the keyboard is pressed. |
| When a key is released | Executes the corresponding action when a key is released. |
| Up and Down | The default key names. You can add or delete keys. For more information, see Configuration items. |
| Parameter | Description |
| Trigger Method | Select a trigger method for the keyboard from the drop-down list. Options include the following:
|
| Key List | Click the or icon to add or delete a key. The new key appears in the Key List node. Click the or icon to configure the arrangement of multiple keys. Click the |
| Alias | Enter a custom alias for the key. This alias serves as the display name. For example, Up. |
| Key Value | Click Change to customize the trigger key. After the change, pressing the corresponding key triggers the action. For example, Shift+↑. |
Outputs: None.
该文章对您有帮助吗?
or
icon to add or delete a key. The new key appears in the Key List node. Click the
or
icon to configure the arrangement of multiple keys. Click the