Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
24c628a182 | ||
|
36e8886754 | ||
|
28605e0023 |
@@ -1,7 +1,9 @@
|
||||
|
||||
# needed for python > 3.8
|
||||
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())
|
||||
|
||||
import hidapi
|
||||
@@ -28,7 +30,12 @@ class pydualsense:
|
||||
|
||||
self.state = DSState() # controller states
|
||||
|
||||
self.conType = self.determineConnectionType() # determine USB or BT connection
|
||||
if platform.startswith('Windows'):
|
||||
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
|
||||
|
4
setup.py
4
setup.py
@@ -6,7 +6,7 @@ with open("README.md", "r") as fh:
|
||||
|
||||
setup(
|
||||
name='pydualsense',
|
||||
version='0.5.2.5',
|
||||
version='0.5.5',
|
||||
description='use your DualSense (PS5) controller with python',
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
@@ -14,5 +14,5 @@ setup(
|
||||
author='Florian K',
|
||||
license='MIT License',
|
||||
packages=setuptools.find_packages(),
|
||||
install_requires=['hidapi-usb', 'cffi']
|
||||
install_requires=['hidapi-usb>=0.3', 'cffi']
|
||||
)
|
||||
|
Reference in New Issue
Block a user