Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
d76717c163 | ||
|
786657cc90 | ||
|
11e78fbece | ||
|
a3f697866b | ||
|
1530c79dd7 |
@@ -1,9 +1,9 @@
|
|||||||
# pydualsense
|
# 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
|
# 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
|
```bash
|
||||||
pip install pydualsense
|
pip install pydualsense
|
||||||
@@ -22,7 +22,7 @@ ds.triggerL.setForce(1, 255)
|
|||||||
ds.close() # closing the controller
|
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
|
# 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
|
import hid # type: ignore
|
||||||
from .enums import (LedOptions, PlayerID,
|
from .enums import (LedOptions, PlayerID,
|
||||||
PulseOptions, TriggerModes, Brightness)
|
PulseOptions, TriggerModes, Brightness)
|
||||||
import threading
|
import threading
|
||||||
import sys
|
|
||||||
import winreg
|
import winreg
|
||||||
class pydualsense:
|
class pydualsense:
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pydualsense',
|
name='pydualsense',
|
||||||
version='0.4.1',
|
version='0.4.2',
|
||||||
description='use your DualSense (PS5) controller with python',
|
description='use your DualSense (PS5) controller with python',
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
Reference in New Issue
Block a user