add and update examples

This commit is contained in:
Florian Kaiser
2020-12-22 14:58:21 +01:00
parent b004d2bc7b
commit cc767d5fcd
5 changed files with 54 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
from pydualsense import *
# create dualsense
dualsense = pydualsense()
# find device and initialize
dualsense.init()
# read controller state until R1 is pressed
while not dualsense.state.R1:
print(f"Circle : {dualsense.state.circle} Cross : {dualsense.state.cross} L Stick X : {dualsense.state.LX} L Stick Y : {dualsense.state.LY}")
# close device
dualsense.close()