b9d0edf08ea4fde38bd4f7c1deac305ec73cbc12
- only using 1 thread for reading inputs and updating the controller - reading the inputs mostly done, gyro and accel missing
pydualsense
control your dualsense through python. using the hid library this module implements the sending report for controlling you new PS5 controller. It creates a background thread to constantly update the controller.
install
Just install the package from pypi
pip install pydualsense
usage
from pydualsense import pydualsense
ds = pydualsense() # open controller
ds.setColor(255,0,0) # set touchpad color to red
ds.setLeftTriggerMode(TriggerModes.Rigid)
ds.setLeftTriggerForce(1, 255)
ds.close() # closing the controller
dependecies
- hid >= 1.0.4
Coming soon
- reading the states of the controller to enable a fully compatibility with python - partially done
- add documentation using sphinx
Description
control your dualsense controller with python
apicontrollerdualsenseplaystationplaystation5ps5ps5-controllerpythonpython-librarypython3sonyusb-hid
Readme
MIT
461 KiB
Languages
Python
100%