5 Commits

Author SHA1 Message Date
Florian Kaiser
d76717c163 Fix missing import 2021-01-01 20:34:42 +01:00
Florian Kaiser
786657cc90 Merge branch 'master' of https://github.com/flok/pydualsense into master 2021-01-01 20:33:39 +01:00
Florian Kaiser
11e78fbece Fix Python > 3.8 dll import 2021-01-01 20:32:55 +01:00
Florian K
a3f697866b Changed place for hidapi.dll
Adding dlls to your System32 is not a good idea. Place the dll into your Workspace
2021-01-01 19:01:30 +01:00
Florian K
1530c79dd7 Update install instructions
Updated the install instructions with the hidapi download and placement.
2021-01-01 11:36:35 +01:00
3 changed files with 10 additions and 6 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
setup(
name='pydualsense',
version='0.4.1',
version='0.4.2',
description='use your DualSense (PS5) controller with python',
long_description=long_description,
long_description_content_type="text/markdown",