2020-11-30 21:25:13 +01:00
2020-11-29 22:41:09 +01:00
2020-11-29 12:49:16 +01:00
2020-11-29 13:25:31 +01:00
2020-11-30 21:25:13 +01:00
2020-11-29 22:41:09 +01:00

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 receive and 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

See examples folder for some more ideas

dependecies

  • hid >= 1.0.4

Credits

Most stuff for this implementation were provided by published an used from:

Coming soon

  • reading the states of the controller to enable a fully compatibility with python - partially done
  • add documentation using sphinx
Languages
Python 100%