Returns data about the device connected to the computer.
Wire Initialize Device to this node to specify the device data you want to acquire.
Reference to the keyboard connected to the computer.
Default: 0
Reference to the joystick connected to the computer.
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
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
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 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.
Default: No error
Reference to the keyboard connected to the computer.
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.
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.
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.
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.
Numeric value of the horizontal axis.
Numeric value of the x-axis.
Numeric value of the vertical axis.
Numeric value of the y-axis.
Numeric value of the scrolling axis if the mouse supports scrolling.
Numeric value of the z-axis.
Numeric value of the x-axis rotation.
Numeric value of the y-axis rotation.
Numeric value of the z-axis rotation.
Numeric value of the u-axis.
Numeric value for the v-axis.
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 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.
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: Not supported
Web Server: Not supported in VIs that run in a web application