Category PS4 CFW and Hacks       Thread starter PSXHAX       Start date Feb 23, 2020 at 12:26 PM       1,806       2            
Since covering the PyPS4Controller Linux Module in development, this weekend mrasband made available a Golang Library based on the Go Programming Language designed at Google to read PS4 DualShock 4 (DS4) Controller evdev events for Linux developers. 🤓

Download: / GIT

From the to quote: A golang library to read from a PlayStation 4 controller. This uses evdev, so it is Linux only.

pacakge main

import (


func main() {
    inputs, err := ps4.Discover()
    if err != nil {
        fmt.Printf("Error discovering controller: %s\n", err)

    var device *ps4.Input
    for _, input := range inputs {
        if input.Type == ps4.Controller {
            device = input

    ctx, cancel := context.WithCancel(context.Background())
    defer cancel()

    events, _ := ps4.Watch(ctx, device)
    for e := range events {
        fmt.Printf("%+v\n", e)

Any of the _string.go files are generated by go generate.
Download: PS4 PSXIta Arch Linux Theme.rar (12.1 MB)
Golang Library to Read PS4 Controller Evdev Events by Mrasband.jpg


Recent Articles
OrbisGl2 LibOrbis Graphic Backend Based on Raylib for PS4 Homebrew
Following the LibOrbisNfs PS4 Port earlier this year, PlayStation 4 scene developer BigBoss announced today that an OrbisGl2 LibOrbis Graphic Backend Library based on Raylib is now available...
Call of Duty: Modern Warfare 2 PS4 Campaign Remastered Arrives
Starting today the new Call of Duty: Modern Warfare 2 Campaign Remastered is available on PlayStation 4 allowing PS4 fans to relive the classic campaign and get the Underwater Demo Team Classic...
PS3 System Software 4.86 Update Live, Don't Update Your Firmware!
Proceeding their previous PS3 OFW revision and recent PS3 Partial Message Service Ending announcement, today Sony pushed live a new PS3 Firmware / System Software 4.86 Update for those who still...
Lapy's River Raid 1.0 PS4 PKG Homebrew Game by Lapy05575948
Following the River Raid PS4 PKG Preview and his recent Easy PKG Extractor, PlayStation 4 homebrew developer @Lapy released a River Raid 1.0 PS4 PKG today on Twitter for those with a Jailbroken...