Click or drag to resize

NintendoSwitchProControllerExtension Class

Allows access to Nintendo Switch Pro Controller specific functions such as vibration. This extension only applies to desktop platforms. For the Nintendo Switch platform, see the Nintendo Switch plugin documentation.
Inheritance Hierarchy
SystemObject
  RewiredControllerExtension
    Rewired.ControllerExtensionsNintendoSwitchGamepadExtension
      Rewired.ControllerExtensionsNintendoSwitchProControllerExtension

Namespace:  Rewired.ControllerExtensions
Assembly:  Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class NintendoSwitchProControllerExtension : NintendoSwitchGamepadExtension, 
	IControllerVibrator, IHIDControllerExtension

The NintendoSwitchProControllerExtension type exposes the following members.

Properties
  NameDescription
Public propertycontroller
The parent controller of this extension.
(Inherited from ControllerExtension.)
Public propertyvibrationMotorCount
The number of vibration motors.
(Inherited from NintendoSwitchGamepadExtension.)
Top
Methods
  NameDescription
Public methodGetVibration
Gets the current vibration value from the controller.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodSetVibration(Int32, NintendoSwitchGamepadVibration)
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodSetVibration(Int32, NintendoSwitchGamepadVibration, Boolean)
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodSetVibration(Int32, NintendoSwitchGamepadVibration, Single)
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodSetVibration(Int32, NintendoSwitchGamepadVibration, Single, Boolean)
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodSetVibration(Int32, Single, Single, Single, Single)
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodSetVibration(Int32, Single, Single, Single, Single, Boolean)
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodSetVibration(Int32, Single, Single, Single, Single, Single)
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodSetVibration(Int32, Single, Single, Single, Single, Single, Boolean)
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodStopVibration
Stops vibration and cancels vibration file playback in all vibration motors.
(Inherited from NintendoSwitchGamepadExtension.)
Public methodStopVibration(Int32)
Stops vibration and cancels vibration file playback in the specified vibration motor.
(Inherited from NintendoSwitchGamepadExtension.)
Top
Fields
  NameDescription
Public fieldmotorIndexLeft
Motor index of the left vibration motor.
Public fieldmotorIndexRight
Motor index of the right vibration motor.
Top
See Also