Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 876962bfa8 | |||
|
|
42df47ae26 |
@@ -15,4 +15,6 @@ dualsense.light.setPlayerID(PlayerID.PLAYER_1)
|
|||||||
# this is not needed in normal usage
|
# this is not needed in normal usage
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
# terminate the thread for message and close the device
|
# terminate the thread for message and close the device
|
||||||
|
dualsense.light.setColorI(0, 0, 255)
|
||||||
|
|
||||||
dualsense.close()
|
dualsense.close()
|
||||||
|
|||||||
9
examples/sounds.py
Normal file
9
examples/sounds.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
from pydualsense import *
|
||||||
|
|
||||||
|
# get dualsense instance
|
||||||
|
dualsense = pydualsense()
|
||||||
|
dualsense.init()
|
||||||
|
|
||||||
|
print('Trigger Sound demo started')
|
||||||
|
|
||||||
|
dualsense.close()
|
||||||
963
poetry.lock
generated
963
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -6,4 +6,4 @@ from .enums import LedOptions, Brightness, PlayerID, PulseOptions, TriggerModes
|
|||||||
from .event_system import Event # noqa : F401
|
from .event_system import Event # noqa : F401
|
||||||
from .pydualsense import pydualsense, DSLight, DSState, DSTouchpad, DSTrigger, DSAudio # noqa : F401
|
from .pydualsense import pydualsense, DSLight, DSState, DSTouchpad, DSTrigger, DSAudio # noqa : F401
|
||||||
|
|
||||||
__version__ = "0.7.2"
|
__version__ = "0.7.3"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "pydualsense"
|
name = "pydualsense"
|
||||||
version = "0.7.2"
|
version = "0.7.3"
|
||||||
description = "use your DualSense (PS5) controller with python"
|
description = "use your DualSense (PS5) controller with python"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.8,<4.0"
|
requires-python = ">=3.8,<4.0"
|
||||||
@@ -21,7 +21,7 @@ classifiers = [
|
|||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "pydualsense"
|
name = "pydualsense"
|
||||||
version = "0.7.2"
|
version = "0.7.3"
|
||||||
description = "use your DualSense (PS5) controller with python"
|
description = "use your DualSense (PS5) controller with python"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/flok/pydualsense"
|
repository = "https://github.com/flok/pydualsense"
|
||||||
@@ -33,13 +33,13 @@ keywords = ['ps5', 'controller', 'dualsense', 'pydualsense']
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.8,<4.0"
|
python = ">=3.8,<4.0"
|
||||||
hidapi-usb = "^0.3.1"
|
hidapi-usb = "^0.3.2"
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
[tool.poetry.group.dev.dependencies]
|
||||||
python = ">=3.9,<4.0"
|
python = ">=3.9,<4.0"
|
||||||
taskipy = "^1.12.2"
|
taskipy = "^1.12.2"
|
||||||
hidapi-usb = "^0.3.1"
|
hidapi-usb = "^0.3.2"
|
||||||
sphinx = "^7.3.7"
|
sphinx = { version= "^7.3.7", python=">=3.9" }
|
||||||
furo = "^2024.5.6"
|
furo = "^2024.5.6"
|
||||||
|
|
||||||
[tool.poetry.group.typing.dependencies]
|
[tool.poetry.group.typing.dependencies]
|
||||||
@@ -106,19 +106,3 @@ exclude = [
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.mypy]
|
|
||||||
strict = true
|
|
||||||
files = "pydualsense"
|
|
||||||
show_error_codes = true
|
|
||||||
pretty = true
|
|
||||||
warn_unused_ignores = true
|
|
||||||
enable_incomplete_feature = ["Unpack"]
|
|
||||||
exclude = [
|
|
||||||
"^docs\\.py$",
|
|
||||||
"^build\\.py$",
|
|
||||||
]
|
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["poetry-core"]
|
|
||||||
build-backend = "poetry.core.masonry.api"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user