Use the Input Device Control VIs to obtain information about the joystick, keyboard, or mouse connected to a computer.

Use the Query Input Devices VI to obtain information about the devices connected to a computer. Use the appropriate Initialize VI to open a reference to and initialize a device. Use the Acquire Input Data VI to acquire the data you want. Use the Close Input Device VI to close the reference to the device. Refer to the Input Device Control VI Error Codes for more information about error codes.

(Windows) You must have DirectX 8.0 or later to use the Input Device Control VIs.


icon

Examples

Refer to the following example files included with LabVIEW.

  • labview\examples\Connectivity\Input Device Control\Monitoring Keyboard and Mouse Activity.vi