Following the Snake RPi LED Mod and PyPS4Controller module, developer Jaccon of Jaccon.com.br shared a PySnakeGame Python script on Github for a Snake Game using the PS4 DualShock 4 (DS4) Controller geared towards those seeking to learn simple controller integration.
Download: PySnakeGame-master.zip / GIT
The script presents an interface for interacting with the PlayStation 4 Controller in Python. Simply plug a PS4 controller into your computer using USB and run the script.
From the README.md, to quote: PySnake Game
The PySnake Game is a very easy script with USB Controller Game to learn how to make a USB controller integration using Python.
Download: PySnakeGame-master.zip / GIT
The script presents an interface for interacting with the PlayStation 4 Controller in Python. Simply plug a PS4 controller into your computer using USB and run the script.
From the README.md, to quote: PySnake Game
The PySnake Game is a very easy script with USB Controller Game to learn how to make a USB controller integration using Python.