All Products
Search
Document Center

DataV:Input devices

Last Updated:May 12, 2023

This topic describes how to configure the Input Device Class node in Blueprint Editor. Input devices include the keyboard only.

Keyboard

The Keyboard node is used to monitor keyboards.

Scenarios: The Keyboard node is used when it is involved in interactions. For example, you can use this node if you need to move a picture by using arrow keys.

Add a keyboard node to the canvas. You can view the events and actions supported by the keyboard node and the configuration parameters. For more information about how to add a file, seeUse kubectl to connect to the ACK cluster. For more information, see Use logical nodes.

键盘面板
Table 1. Event /action parameters

Event /Action

Description

When any key is pressed

This action is executed if a key on the keyboard is pressed.

When a character key is pressed

This action is executed if a character key on the keyboard is pressed.

When the key is released

This action is executed if a key on the keyboard is released.

Up and

The name of the key that is added by default. You can add or delete keys. For more information, see configuration items description.

Table 2. configuration items description

The following table lists only the parameters in Other Settings. For more information about other parameters, see Common parameters.

Parameter

Description

Trigger Condition

Click the drop-down list and select one of the following methods to trigger the keyboard:

  • keydown: Triggers when any key is pressed.

  • keypress: Triggers when a character key is pressed.

  • keyup: Triggers when any key is released.

Key List

Click the 加号图标or 垃圾桶图标icon on the right to add or remove a new button. The new button is displayed in the Button List node. Click the 横排列图标or 竖排列图标icon to configure the arrangement style of multiple keys. Click the 复制图标icon to copy the configuration of the selected button and add a button with the same configuration.

Alias

The custom alias of a key, for example, Up.

Key Value

Click Change to modify the trigger key. After the trigger key is configured, the specified action is triggered when you click a key. Shift+↑, for example.

Output: none.