SetDigitalDataSourceState Method
From PPJoy
| PPJoy Wrapper Library reference library |
| VirtualJoystick..::.SetDigitalDataSourceState Method |
| VirtualJoystick Class See Also |
Sets an individual Digital data source state.
Namespace:
PPJoy
Assembly:
PPJoyWrapper (in PPJoyWrapper.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub SetDigitalDataSourceState ( _ dataSourceNum As Integer, _ newValue As Boolean _ ) |
| C# |
|---|
public void SetDigitalDataSourceState( int dataSourceNum, bool newValue ) |
| Visual C++ |
|---|
public: void SetDigitalDataSourceState( int dataSourceNum, bool newValue ) |
Parameters
- dataSourceNum
- Type: System..::.Int32
Zero-based index of the digital data source to update.
- newValue
- Type: System..::.Boolean
A new value to apply to the specified digital data source.
Remarks
This value does not get passed to PPJoy until the
SendUpdates()()() method gets called. This
allows multiple digital data source state updates to be passed
to the PPJoy driver in a single pass.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentOutOfRangeException | Thrown if the dataSourceNum argument < 1 or > MaxDigitalDataSources |