Skip to main content

use your DualSense (PS5) controller with python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydualsense-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

pydualsense-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pydualsense-0.1.0.tar.gz.

File metadata

  • Download URL: pydualsense-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for pydualsense-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c4c228902537cb042122c5ec8c542ef81a31e8b0249aa5c632f28003c08656b1
MD5 0f72e26dd3aee6e820248a84977526a7
BLAKE2b-256 ff811f574fbb290b1214401209fa108d2adc1a56997081719bd83d25cca6d4ba

See more details on using hashes here.

Provenance

File details

Details for the file pydualsense-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pydualsense-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0

File hashes

Hashes for pydualsense-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e5d9f5a79ab272c8e97cc58d1d4004cce99f488d56f52f2a174833e01da708d
MD5 b2b1e7f6fe3bdc4c4c584350994b9b90
BLAKE2b-256 2886adaf01991d6eeb8ccb6cf81ba578a78c430c247523fb0f827d3b020921c9

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page