-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
418 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
from pydualsense import * | ||
from pydualsense import pydualsense | ||
from pydualsense.enums import PlayerID | ||
import time | ||
|
||
# get dualsense instance | ||
dualsense = pydualsense() | ||
dualsense.init() | ||
# set color around touchpad to red | ||
dualsense.light.setColorI(255,0,0) | ||
dualsense.light.setColorI(255, 0, 0) | ||
# mute microphone | ||
dualsense.audio.setMicrophoneState(True) | ||
# set all player 1 indicator on | ||
dualsense.light.setPlayerID(PlayerID.PLAYER_1) | ||
# sleep a little to see the result on the controller | ||
# this is not needed in normal usage | ||
import time; time.sleep(2) | ||
time.sleep(2) | ||
# terminate the thread for message and close the device | ||
dualsense.close() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
from .enums import LedOptions, Brightness, PlayerID, PulseOptions, TriggerModes | ||
from .event_system import Event | ||
from .pydualsense import pydualsense, DSLight, DSState, DSTouchpad, DSTrigger, DSAudio | ||
import os | ||
import sys | ||
sys.path.append(os.path.dirname(__file__)) | ||
|
||
from .enums import LedOptions, Brightness, PlayerID, PulseOptions, TriggerModes # noqa : F401 | ||
from .event_system import Event # noqa : F401 | ||
from .pydualsense import pydualsense, DSLight, DSState, DSTouchpad, DSTrigger, DSAudio # noqa : F401 | ||
|
||
print(sys.path) | ||
|
||
__version__ = "0.7.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
from collections import defaultdict | ||
|
||
|
||
class Event(object): | ||
""" | ||
Base class for the event driven system | ||
|
Binary file not shown.
Oops, something went wrong.