3 Commits

Author SHA1 Message Date
Florian Kaiser
24c628a182 Update package version 2021-06-28 23:04:55 +02:00
Florian Kaiser
36e8886754 Update version 2021-06-28 23:03:23 +02:00
Florian Kaiser
28605e0023 Update with linux support over usb 2021-06-28 23:00:22 +02:00
2 changed files with 11 additions and 4 deletions

View File

@@ -1,7 +1,9 @@
# needed for python > 3.8 # needed for python > 3.8
import os, sys import os, sys
if sys.platform.startswith('win32') and sys.version_info >= (3,8): from sys import platform
if platform.startswith('Windows') and sys.version_info >= (3,8):
os.add_dll_directory(os.getcwd()) os.add_dll_directory(os.getcwd())
import hidapi import hidapi
@@ -28,7 +30,12 @@ class pydualsense:
self.state = DSState() # controller states self.state = DSState() # controller states
if platform.startswith('Windows'):
self.conType = self.determineConnectionType() # determine USB or BT connection self.conType = self.determineConnectionType() # determine USB or BT connection
else:
# set for usb manually
self.input_report_length = 64
self.output_report_length = 64
# thread for receiving and sending # thread for receiving and sending

View File

@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
setup( setup(
name='pydualsense', name='pydualsense',
version='0.5.2.5', version='0.5.5',
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",
@@ -14,5 +14,5 @@ setup(
author='Florian K', author='Florian K',
license='MIT License', license='MIT License',
packages=setuptools.find_packages(), packages=setuptools.find_packages(),
install_requires=['hidapi-usb', 'cffi'] install_requires=['hidapi-usb>=0.3', 'cffi']
) )