![]() |
VOOZH | about |
dotnet add package Wujek_Dualsense_API --version 1.6.3
NuGet\Install-Package Wujek_Dualsense_API -Version 1.6.3
<PackageReference Include="Wujek_Dualsense_API" Version="1.6.3" />
<PackageVersion Include="Wujek_Dualsense_API" Version="1.6.3" />Directory.Packages.props
<PackageReference Include="Wujek_Dualsense_API" />Project file
paket add Wujek_Dualsense_API --version 1.6.3
#r "nuget: Wujek_Dualsense_API, 1.6.3"
#:package Wujek_Dualsense_API@1.6.3
#addin nuget:?package=Wujek_Dualsense_API&version=1.6.3Install as a Cake Addin
#tool nuget:?package=Wujek_Dualsense_API&version=1.6.3Install as a Cake Tool
Wujek Dualsense API is a .NET library designed to interface with the PlayStation DualSense controller, providing functionalities to control its various features such as haptic feedback, LEDs, triggers, and more.
https://github.com/WujekFoliarz/Wujek-Dualsense-API
Add the library to your project by including the Wujek_Dualsense_API namespace:
using Wujek_Dualsense_API;
To start using the DualSense controller, create an instance of the Dualsense class, specifying the controller device path
Dualsense dualsense = new Dualsense(DualsenseUtils.GetControllerIDs()[0]);
dualsense.Start(); // Start listening
dualsense.SetLightbar(0, 0, 255); // R G B
dualsense.SetPlayerLED(LED.PlayerLED.PLAYER_1); // The white LEDs below the touchpad
dualsense.SetMicrophoneLED(LED.MicrophoneLED.OFF); // Microphone LED
dualsense.SetMicrophoneVolume(100); // Microphone Volume
dualsense.SetSpeakerVolume(100); // Speaker Volume
dualsense.SetLeftTrigger(TriggerType.TriggerModes.Pulse_AB, 93, 84, 0, 255, 255, 0, 0); // Example adaptive trigger
dualsense.SetRightTrigger(TriggerType.TriggerModes.Pulse_B, 14, 255, 0, 14, 255, 0, 0); // Example adaptive trigger
dualsense.SetVibrationType(Vibrations.VibrationType.Standard_Rumble); // Use standard rumble (Controller audio won't work with this option)
dualsense.SetStandardRumble(100, 255); // Start vibrations
Console.ReadLine();
dualsense.Dispose() // Disconnects from the controller and resets any applied settings
dualsense.Start(); // Start listening
dualsense.SetVibrationType(Vibrations.VibrationType.Haptic_Feedback); // Use haptic feedback and audio
dualsense.PlayHaptics("player_collar_beep_end_0.wav", 1.0f, 1.0f, 1.0f, true); // (WAV file location, speaker volume, left acustor volume, right acustor volume, cancel previous sounds)
Console.ReadLine();
dualsense.Dispose() // Disconnects from the controller and resets any applied settings
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows10.0.22621 net8.0-windows10.0.22621 is compatible. net9.0-windows net9.0-windows was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.6.3 | 589 | 10/11/2024 | |
| 1.6.2 | 214 | 10/11/2024 | |
| 1.6.1 | 182 | 10/7/2024 | |
| 1.6.0 | 186 | 10/7/2024 | |
| 1.5.9 | 179 | 10/7/2024 | |
| 1.5.8 | 200 | 10/6/2024 | |
| 1.5.7 | 194 | 10/6/2024 | |
| 1.5.6 | 196 | 10/6/2024 | |
| 1.5.5 | 195 | 10/6/2024 | |
| 1.5.4 | 201 | 10/3/2024 | |
| 1.5.2 | 203 | 10/1/2024 | |
| 1.5.1 | 207 | 10/1/2024 | 1.5.1 is deprecated because it has critical bugs. |
| 1.5.0 | 230 | 9/30/2024 | |
| 1.4.9 | 199 | 9/21/2024 | |
| 1.4.7 | 206 | 9/12/2024 | |
| 1.4.6 | 198 | 9/12/2024 | |
| 1.4.5 | 244 | 9/6/2024 |