Skip to content

Commit 846433c

Browse files
committed
Fixed some typos in README.md
1 parent 2e85130 commit 846433c

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# python-connect-ps4
2-
Using Python to connect to a PS4 and a map of all identified events.
2+
A basic snippet to use vanillia Python to react to a PS4 controller events.
33

44
This code was written to connect a LEGO EV3 Brick to a PS4 controller. The EV3 is running [ev3dev](https://www.ev3dev.org/) and running a version of Python called [Pybricks](https://github.com/pybricks/pybricks-micropython). However, the code reacting to the PS4 controller events and the mapping of different buttons should apply to any Python/PS4 project.
55

@@ -11,14 +11,14 @@ When the PS4 is paried with the device it creates three event files. These files
1111
Using a terminal check out the contents of the /dev/input folder before and after you pair the Bluetooth device. You should notice three new event files. On my device these files where:
1212

1313
* /dev/input/event2 (touchpad events)
14-
* /dev/input/event3 (controller movement, like tilting, etc...)
14+
* /dev/input/event3 (controller movement, like tilting, shaking, etc...)
1515
* /dev/input/event4 (buttons, sticks, etc...)
1616

17-
Each event provides five values, but we only need the event ID, code, and value. Here is a list of all events I could find:
17+
Each event provides five values, but we only need the event ID, code, and value. Here is a list of all events I could map:
1818

1919
## Button and Stick Events
2020

21-
For me button and stick events were found in /dev/input/event4. If you're working on a PS4 project, these are probably the events you're looking for.
21+
With my device, the button and stick events were found in /dev/input/event4. If you're working on a PS4 project, these are probably the events you're looking for.
2222

2323
<table>
2424
<tr><th>Event</th><th>ID</th><th>Code</th><th>Possible Values</th><th>Description</th></tr>
@@ -49,6 +49,8 @@ Note that the left and right sticks often trigger ongoing events if the controll
4949

5050
## Controller Movement
5151

52+
Movement events were found in /dev/input/event3.
53+
5254
These events are triggered by physically moving or tilting the controller. I'm not as confident with these. I could not tell the difference with codes one and two.
5355

5456
<table>
@@ -63,7 +65,9 @@ These events are triggered by physically moving or tilting the controller. I'm n
6365

6466
## Touch Pad Events
6567

66-
These events are triggered by using or pressing the touchpad on the PS4 controller. I could not figure out the difference between code 252 and 230 or 333 and 47.
68+
Movement events were found in /dev/input/event2.
69+
70+
These events are triggered by using or pressing the touchpad on the PS4 controller. I could not figure out the difference between codes 252 and 230 or 333 and 47.
6771

6872
<table>
6973
<tr><th>Event</th><th>ID</th><th>Code</th><th>Possible Values</th><th>Description</th></tr>

0 commit comments

Comments
 (0)