Update doc-strings and examples
This commit is contained in:
@@ -16,7 +16,8 @@ dualsense.triggerR.setForce(0, 200)
|
||||
dualsense.triggerR.setForce(1, 255)
|
||||
dualsense.triggerR.setForce(2, 175)
|
||||
|
||||
import time; time.sleep(3)
|
||||
|
||||
# loop until r1 is pressed to feel effect
|
||||
while not dualsense.state.R1:
|
||||
...
|
||||
# terminate the thread for message and close the device
|
||||
dualsense.close()
|
||||
@@ -6,7 +6,7 @@ dualsense.init()
|
||||
# set color around touchpad to red
|
||||
dualsense.light.setColorI(255,0,0)
|
||||
# mute microphone
|
||||
dualsense.audio.setMicrophoneMute(True)
|
||||
dualsense.audio.setMicrophoneState(True)
|
||||
# set all player 1 indicator on
|
||||
dualsense.light.setPlayerID(PlayerID.player1)
|
||||
# sleep a little to see the result on the controller
|
||||
|
||||
Reference in New Issue
Block a user