Skip to content

Commit 23b67ae

Browse files
BlitzCityDIYBlitzCityDIY
authored andcommitted
updating examples
1 parent bff2f6f commit 23b67ae

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

examples/wii_classic_simpletest.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
while True:
1313
left_x, left_y = ctrl_pad.joystick_l
1414
right_x, right_y = ctrl_pad.joystick_r
15-
left_pressure = ctrl_pad.l_shoulder
16-
right_pressure = ctrl_pad.r_shoulder
15+
left_pressure = ctrl_pad.l_shoulder.LEFT_FORCE
16+
right_pressure = ctrl_pad.r_shoulder.RIGHT_FORCE
1717
print("joystick_l = {},{}".format(left_x, left_y))
1818
print("joystick_r = {},{}".format(right_x, left_y))
1919
print("left shoulder = {}".format(left_pressure))
@@ -23,5 +23,11 @@
2323
if ctrl_pad.buttons.B:
2424
print("button B")
2525
if ctrl_pad.d_pad.UP:
26-
print("button Up")
26+
print("dpad Up")
27+
if ctrl_pad.d_pad.DOWN:
28+
print("dpad Down")
29+
if ctrl_pad.d_pad.LEFT:
30+
print("dpad Left")
31+
if ctrl_pad.d_pad.RIGHT:
32+
print("dpad Right")
2733
time.sleep(0.5)

0 commit comments

Comments
 (0)