I would like to get a PS4 controller to work on my PC and then relay the data to a microcontroller via UART.
The problem is, that I have no experience in C++ programming for Linux. The uC part is more in my favor. Nevertheless, I would like to write a program which can set up a connection with a PS4 controller and read all buttons, sticks, motions and the track-pad. Also, it would be nice to be able to control rumble and the LED color.
I am using Ubuntu 16.4 and have read that the PS4 controller is natively supported since ver. 14.xx. But all I can find regarding a connection is how to set up the controller for steam or gaming in general. But not how to get that status information and work with them using C++.
On the internet, I found some projects but they are all at least 3-4 years old and using an old version of Ubuntu. But since the controller is natively supported it would be nice to use it without outdated plugins/drivers which are obsolete anyway. I also started to look into HID-devices but that seems more like a workaround and I was hoping to find e.g. a library to include and use...
If someone can give me a hint, it would be greatly appreciated.