MinDataSource Property

PPJoy

Gets/sets the PPJoy AxisDataSource that this AxisMapping will use as the source of the values that it will report to Windows.

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

Syntax

Visual Basic (Declaration)
Public Property MinDataSource As AxisDataSources
C#
public AxisDataSources MinDataSource { get; set; }
Visual C++
public:
property AxisDataSources MinDataSource {
	AxisDataSources get ();
	void set (AxisDataSources value);
}

Remarks

When the MinDataSource property is set to a Digital AxisDataSource, then this AxisMapping will report its minimum value to Windows whenever the Digital AxisDataSource's value is trueTruetruetrue (True in Visual Basic).

When this property is set to an Analog or Reversed AxisDataSource, then this AxisMapping will report the value provided by the Analog or Reversed AxisDataSource assigned to the MinDataSource property, and will ignore any AxisDataSource set in the MaxDataSource property.


Details: PPJoy AxisMappings can be driven from either Digital or Analog AxisDataSources.

Digital AxisDataSources:

If an AxisMapping is driven by a (pair of) DigitalAxisDataSources, then the AxisMapping can only report one of two possible values -- Minimum and Maximum. How this works is as follows:

If the value of the Digital data source assigned to the AxisMapping's MinDataSource property is trueTruetruetrue (True in Visual Basic), then the AxisMapping will report its value as being the minimum axis value.

Alternatively, if the value of the Digital data source assigned to the AxisMapping's MaxDataSource property is trueTruetruetrue (True in Visual Basic), then the AxisMapping will report its value as being the maximum axis value. If both the MinDataSource and the MaxDataSource's values read the same value (either trueTruetruetrue (True in Visual Basic) or falseFalsefalsefalse (False in Visual Basic), the behavior is undefined.

Note: If the MinDataSource property is set to a DigitalAxisDataSource, then the MaxDataSource property should also be set to a DigitalAxisDataSource. You cannot set one data source to Digital and the other to Analog, nor should you set the MinDataSource property without also setting the MaxDataSource property.

Analog/Reversed AxisDataSource:

If an AxisMapping is driven by an Analog or ReversedAxisDataSource, then the AxisMapping will report its value to Windows, based on the value of the underlying Analog or Reversed AxisDataSource which is assigned to the AxisMapping's MinDataSource property.

For Analog AxisDataSources, when the value of the underlying AxisDataSource increases, the value reported by the AxisMapping to Windows will increase proportionately.

For ReversedAxisDataSources, when the value of the underlying AxisDataSourcedecreases, the value reported by the AxisMapping to Windows will increase proportionately.

Note: If the MinDataSource property is set to an AnalogAxisDataSource or a ReversedAxisDataSource, then the value of the MaxDataSource property will be ignored.

See Also