Skip to content

Tests for Sony PS4 controllers

I would like to share a UHID implementation for Sony PS4 controllers for both USB and Bluetooth and matching unit tests. The initial implementation support the PS4 controller gamepad features as well as the touchpad. Tests for sysfs (leds, power supply,..) and motion sensors are still missing.

During development of these patches some tweaks were made to the existing hid-tools code. Device ready code was moved to BaseDevice. In addition the PS4 controller uses 3 evdev nodes and the current code assumed a single evdev node. A new get_evdev() function was added to locate the evdev node for different applications.

Merge request reports