Skip to content

Commit 6166af5

Browse files
committed
Added code formatting
1 parent a71cd7d commit 6166af5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ These events are triggered by using or pressing the touchpad on the PS4 controll
8585

8686
Reacting to an event would look like this:
8787

88-
'''python
88+
```python
8989
# If a button was pressed or released
9090
if ev_type == 1:
9191

@@ -94,7 +94,7 @@ Reacting to an event would look like this:
9494
print("The X button was released")
9595
elif code == 304 and value == 1:
9696
print("The X button was pressed")
97-
'''
97+
```
9898

9999
This is assuming the events file has been opened and a while loop has been initiated (see main.py or tank.py).
100100

0 commit comments

Comments
 (0)