- Added Microphone mute - changed MicrphoneLED function to boolean instead of int parameter - using diffrent hidapi library for interacting with c library to get length of reports from device for bt support later
1.5 KiB
1.5 KiB
pydualsense
control your dualsense through python. using the hid library this package implements the report features for controlling your new PS5 controller.
install
Download hidapi and place the x64 .dll file into your Workspace. After that install the package from pypi.
pip install pydualsense
usage
from pydualsense import pydualsense, TriggerModes
ds = pydualsense() # open controller
ds.init() # initialize controller
ds.light.setColorI(255,0,0) # set touchpad color to red
ds.triggerL.setMode(TriggerModes.Rigid)
ds.triggerL.setForce(1, 255)
ds.close() # closing the controller
See examples folder for some more ideas
Help wanted
Help wanted from people that want to use this and have feature requests. Just open a issue with the correct label.
dependecies
- hidapi-usb >= 0.2.6
Credits
Most stuff for this implementation were provided by and used from:
- https://www.reddit.com/r/gamedev/comments/jumvi5/dualsense_haptics_leds_and_more_hid_output_report/
- https://github.com/Ryochan7/DS4Windows
Coming soon
- add bluetooth support
- add multiple controllers
- reading the states of the controller to enable a fully compatibility with python - partially done
- add documentation using sphinx