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.
When connected via USB, the controller's battery will show up under /sys/class/power_supply.
Though primarily used as a joystick, the DualShock can also be employed as a mouse via the X eudev driver.
- Sony DualShock page on the Gentoo Wiki
- Gamepad page on the Arch Wiki