Check out my first novel, midnight's simulacra!
Dualshock controller
From dankwiki
The Sony Dualshock Wireless 4 controller works well with Linux. Support was added in 3.15, though newest revisions of the DualShock 4 require Linux 4.10.
Battery
When connected via USB, the controller's battery will show up under /sys/class/power_supply.
Input
Though primarily used as a joystick, the DualShock can also be employed as a mouse via the X eudev driver.
Further Reading
- Sony DualShock page on the Gentoo Wiki
- Gamepad page on the Arch Wiki