Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d76717c163 | ||
|
786657cc90 | ||
|
11e78fbece | ||
|
a3f697866b | ||
|
1530c79dd7 |
@@ -1,9 +1,9 @@
|
||||
# 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.
|
||||
control your dualsense through python. using the hid library this package implements the report features for controlling your new PS5 controller.
|
||||
|
||||
# install
|
||||
|
||||
Just install the package from [pypi](https://pypi.org/project/pydualsense/)
|
||||
Download [hidapi](https://github.com/libusb/hidapi/releases) and place the x64 .dll file into your Workspace. After that install the package from [pypi](https://pypi.org/project/pydualsense/).
|
||||
|
||||
```bash
|
||||
pip install pydualsense
|
||||
@@ -22,7 +22,7 @@ ds.triggerL.setForce(1, 255)
|
||||
ds.close() # closing the controller
|
||||
```
|
||||
|
||||
See ``examples`` folder for some more ideas
|
||||
See [examples](https://github.com/flok/pydualsense/tree/master/examples) folder for some more ideas
|
||||
|
||||
# Help wanted
|
||||
|
||||
|
@@ -1,9 +1,13 @@
|
||||
from os import device_encoding
|
||||
|
||||
# needed for python > 3.8
|
||||
import os, sys
|
||||
if sys.version_info >= (3,8):
|
||||
os.add_dll_directory(os.getcwd())
|
||||
|
||||
import hid # type: ignore
|
||||
from .enums import (LedOptions, PlayerID,
|
||||
PulseOptions, TriggerModes, Brightness)
|
||||
import threading
|
||||
import sys
|
||||
import winreg
|
||||
class pydualsense:
|
||||
|
||||
|
Reference in New Issue
Block a user