GetDevice Method

PPJoy

Retrieves a Device object that matches the specified query parameters.

Namespace:  PPJoy
Assembly:  PPJoyWrapper (in PPJoyWrapper.dll)

Syntax

Visual Basic (Declaration)
Public Function GetDevice ( _
	lptNum As Integer, _
	unitNum As Integer _
) As Device
C#
public Device GetDevice(
	int lptNum,
	int unitNum
)
Visual C++
public:
Device^ GetDevice(
	int lptNum, 
	int unitNum
)

Parameters

lptNum
Type: System..::.Int32
LPT Port number of the Device to retrieve; set to 0 for Virtual Joystick Devices.
unitNum
Type: System..::.Int32
Unit number of the Device to retrieve.

Return Value

A Device object matching the search criteria, or nullNothingnullptra null reference (Nothing in Visual Basic), if no matching Device is found.

See Also