NintendoSwitchJoyConExtension Class |
Allows access to Nintendo Switch Joy-Con 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
Namespace:
Rewired.ControllerExtensions
Assembly:
Rewired_Core (in Rewired_Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public sealed class NintendoSwitchJoyConExtension : NintendoSwitchGamepadExtension,
IControllerVibrator, IHIDControllerExtension
The NintendoSwitchJoyConExtension type exposes the following members.
Properties
| Name | Description |
---|
| controller |
The parent controller of this extension.
(Inherited from ControllerExtension.) |
| joyConGripStyle |
Gets or sets the current Joy-Cons grip style.
Horizontal: Joy-Con held like a remote control using one hand with L/R and ZL/ZR facing forward/up.
Vertical: Joy-Con held like a gamepad with SL and SR facing forward/up.
|
| joyConType |
Gets the Joy-Con type.
This can be used do determine if this is a Left or Right Joy-Con.
|
| vibrationMotorCount |
The number of vibration motors.
(Inherited from NintendoSwitchGamepadExtension.) |
TopMethods
| Name | Description |
---|
| GetVibration |
Gets the current vibration value from the controller.
(Inherited from NintendoSwitchGamepadExtension.) |
| SetVibration(Int32, NintendoSwitchGamepadVibration) |
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.) |
| SetVibration(Int32, NintendoSwitchGamepadVibration, Boolean) |
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.) |
| SetVibration(Int32, NintendoSwitchGamepadVibration, Single) |
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.) |
| SetVibration(Int32, NintendoSwitchGamepadVibration, Single, Boolean) |
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.) |
| SetVibration(Int32, Single, Single, Single, Single) |
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.) |
| SetVibration(Int32, Single, Single, Single, Single, Boolean) |
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.) |
| SetVibration(Int32, Single, Single, Single, Single, Single) |
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.) |
| SetVibration(Int32, Single, Single, Single, Single, Single, Boolean) |
Sets vibration in the controller.
(Inherited from NintendoSwitchGamepadExtension.) |
| StopVibration |
Stops vibration and cancels vibration file playback in all vibration motors.
(Inherited from NintendoSwitchGamepadExtension.) |
| StopVibration(Int32) |
Stops vibration and cancels vibration file playback in the specified vibration motor.
(Inherited from NintendoSwitchGamepadExtension.) |
TopSee Also