SetAnalogDataSourceValue Method

PPJoy

Sets an individual Analog data source value.

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

Syntax

Visual Basic (Declaration)
Public Sub SetAnalogDataSourceValue ( _
	dataSourceNum As Integer, _
	newValue As Integer _
)
C#
public void SetAnalogDataSourceValue(
	int dataSourceNum,
	int newValue
)
Visual C++
public:
void SetAnalogDataSourceValue(
	int dataSourceNum, 
	int newValue
)

Parameters

dataSourceNum
Type: System..::.Int32
Zero-based index of the Analog data source to update.
newValue
Type: System..::.Int32
A value between MinAnalogDataSourceVal and MaxAnalogDataSourceVal, that will be assigned to the Analog data source.

Remarks

Axis data source values that are set by calling the SetAnalogDataSourceValue(Int32, Int32) method do not get passed to PPJoy until the SendUpdates()()() method is called. This allows multiple data source value updates to be passed to the PPJoy driver in a single pass.

Exceptions

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionThrown if the dataSourceNum param < 1 or > MaxAnalogDataSources; also thrown if the newValue argument is < MinAnalogDataSourceVal or > MaxAnalogDataSourceVal

See Also