Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
control your dualsense through python. using the hid library this package implements the report features for controlling your PS5 controller.
You can find the documentation at docs
Download hidapi and place the x64 .dll file into your Workspace. After that install the package from pypi.
pip install --upgrade pydualsense
On Linux based system you first need to add a udev rule to let the user access the PS5 controller without requiring root privileges.
sudo cp 70-ps5-controller.rules /etc/udev/rules.d
sudo udevadm control --reload-rules
sudo udevadm trigger
Then install the hidapi through your package manager of your system.
On an Ubuntu system the package libhidapi-dev
is required.
sudo apt install libhidapi-dev
After that install the package from pypi.
pip install --upgrade pydualsense
from pydualsense import pydualsense, TriggerModes
def cross_pressed(state):
print(state)
ds = pydualsense() # open controller
ds.init() # initialize controller
ds.cross_pressed += cross_pressed
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 or examples docs folder for some more ideas
Help wanted from people that want to use this and have feature requests. Just open a issue with the correct label.
Most stuff for this implementation were provided by and used from:
FAQs
use your DualSense (PS5) controller with python
We found that pydualsense demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.