keyboard in

joystick in

This input only appears after you set the Function Configuration of the Initialize Device node to Joystick and wire the joystick output of Initialize Joystick to keyboard in.

Default: 0

mouse in

Reference to the mouse connected to the computer.

This input only appears after you set the Function Configuration of the Initialize Device node to Mouse and wire the mouse output of Initialize Mouse to keyboard in.

Default: 0

key mode

Defines the mouse coordinates in axis info.

This input only appears after you set the Function Configuration of the Initialize Device node to Mouse and wire the mouse output of Initialize Mouse to keyboard in.

Name

Description

Relative

Defines the mouse coordinates (axis info) as relative to the last time you called the node.

Absolute

Defines the mouse coordinates (axis info) as absolute coordinates relative to the upper left hand corner of the screen.

Default: Absolute

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error

error in contains an error

If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

keyboard out

Reference to the keyboard connected to the computer.

joystick out

Reference to the joystick connected to the computer.

This output only appears after you set the Function Configuration of the Initialize Device node to Joystick and wire the joystick output of Initialize Joystick to keyboard in.

mouse out

Reference to the mouse connected to the computer.

This output only appears after you set the Function Configuration of the Initialize Device node to Mouse and wire the mouse output of Initialize Mouse to keyboard in.

keys pressed

Numeric that provides information about which keys are pressed when the node runs and only returns values associated with US keyboards.

This output only appears after you set the Function Configuration of the Initialize Device node to Keyboard and wire the keyboard output of Initialize Keyboard to keyboard in.

axis info

Numeric values for the axes. The axis information you have access to varies depending on the device connected to the computer.

This output only appears after you set the Function Configuration of the Initialize Device node to Mouse or Joystick and wire the mouse or joystick output of Initialize Mouse or Initialize Joystick to keyboard in.

Horizontal

Numeric value of the horizontal axis.

X axis

Numeric value of the x-axis.

Vertical

Numeric value of the vertical axis.

Y axis

Numeric value of the y-axis.

Scrolling

Numeric value of the scrolling axis if the mouse supports scrolling.

Z axis

Numeric value of the z-axis.

X axis rotation

Numeric value of the x-axis rotation.

Y axis rotation

Numeric value of the y-axis rotation.

Z axis rotation

Numeric value of the z-axis rotation.

U axis

Numeric value of the u-axis.

V axis

Numeric value for the v-axis.

button info

Cluster that contains Boolean values for buttons. The number of buttons you have access to depends on the device connected to the computer and displays up to four buttons for a mouse and 32 buttons for a joystick.

This output only appears after you set the Function Configuration of the Initialize Device node to Mouse or Joystick and wire the mouse or Joystick output of Initialize Mouse or Initialize Joystick to keyboard in.

True

Button is activated.

False

Button is not activated.

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error

error in contains an error

If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

direction info

Numeric values for up to four directions in which you move your joystick.

This output only appears after you set the Function Configuration of the Initialize Device node to Joystick and wire the joystick output of Initialize Joystick to keyboard in.

Where This Node Can Run:

Desktop OS: Windows

FPGA: This product does not support FPGA devices

Recently Viewed Topics

This site uses cookies to offer you a better browsing experience. Learn more about our privacy policy.