Introduction¶
Ready to get your Python on and create a PS4 project? This guide's got you covered with installation options and a basic project code example.
Requirements¶
- Python 3.9 or greater
- Know how to use
pip
- PS4 Controllers
- A Linux System
Installation Methods¶
Virtual-Environments¶
I strongly recommend that you make use of Virtual Environments when working on any project. This means that each project will have its own libraries of any version and does not affect anything else on your system. Don't worry, this isn't setting up a full-fledged virtual machine, just small python environment.
1 2 3 |
|
It's that simple, now you're using a virtual environment. If you want to leave the environment just type deactivate
. If you want to learn more about the virtual environments, check out this page
Pip install¶
Now let's get the library installed.
1 |
|
Basic Project¶
Now let's get a basic project going, for your code, you'll want something like this:
1 2 3 4 5 6 |
|
You can choose to connect your PS4 Controller either before or after you start the code.On how to connect , check out this page
Congratulations! You now have a basic understanding of this library. If you have any questions check out our other guides
For more examples, check out the examples page
Created: September 28, 2023