SetDeviceMappings Method
From PPJoy
| PPJoy Wrapper Library reference library |
| DeviceManager..::.SetDeviceMappings Method |
| DeviceManager Class See Also |
Sets the mappings for a specific PPJoy device.
Namespace:
PPJoy
Assembly:
PPJoyWrapper (in PPJoyWrapper.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Sub SetDeviceMappings ( _ lptNum As Integer, _ joystickType As JoystickTypes, _ unitNum As Integer, _ scope As JoystickMapScope, _ newMappings As MappingCollection _ ) |
| C# |
|---|
public void SetDeviceMappings( int lptNum, JoystickTypes joystickType, int unitNum, JoystickMapScope scope, MappingCollection newMappings ) |
| Visual C++ |
|---|
public: void SetDeviceMappings( int lptNum, JoystickTypes joystickType, int unitNum, JoystickMapScope scope, MappingCollection^ newMappings ) |
Parameters
- lptNum
- Type: System..::.Int32
The LPT number of the device whose mappings will be set to the newly-supplied mappings.
- joystickType
- Type: PPJoy..::.JoystickTypes
The type of device whose mappings will be set to the newly-supplied mappings.
- unitNum
- Type: System..::.Int32
The unit number of the device whose mappings will be set.
- scope
- Type: PPJoy..::.JoystickMapScope
The scope in which to set the new mappings -- either for the device instance itself, or for the device's interface defaults for all devices of the same type that do not override those defaults.
- newMappings
- Type: PPJoy..::.MappingCollection
A MappingCollection object containing the new mappings to associate with this device or interface.