I use atmega32u4.hex from EMUPS4 folder. And i have also try the PS4_Battlefield4_foxy.xml config.
Edit: My windows now sees the controler and it works one time but now it dont work any more. Here log:
option -l with value `log.txt'
option -c with value `PS4_Battlefield4_foxy.xml'
option -p with value `COM3'
status flag is set
subpos flag is set
force_updates flag is set
Detected USB adapter: DS4.
using default refresh period: 10.00ms
A device name is empty. Multiple mice and keyboards are not managed.
Warning: can't open macro directory C:\Users\DeltaFox\AppData\Roaming//gimx//macros/
0 1452196033.885276, lstick x (-4), lstick y (-7), rstick y (-5)
0 1452196035.244354, lstick x (-4), lstick y (-128), rstick y (-5)
0 1452196035.514370, lstick x (-4), rstick y (-5)
0 1452196035.694380, lstick x (-128), rstick y (-5)
0 1452196036.184408, rstick y (-5)
0 1452196036.254412, lstick x (128), rstick y (-5)
0 1452196036.384419, rstick y (-5)
0 1452196036.464424, lstick y (-128), rstick y (-5)
0 1452196036.644434, lstick x (-128), lstick y (-128), rstick y (-5)
0 1452196036.674436, lstick x (-128), rstick y (-5)
0 1452196036.874447, lstick x (128), rstick y (-5)
0 1452196036.914450, lstick x (128), rstick y (-5)
0 1452196037.084459, lstick x (128), lstick y (-128), rstick y (-5)
0 1452196037.124462, lstick y (-128), rstick y (-5)
0 1452196037.184465, lstick x (-128), lstick y (-128), rstick y (-5)
0 1452196037.234468, lstick x (-128), rstick y (-5)
0 1452196037.274470, rstick y (-5)
0 1452196040.625662, rstick y (-5), r2 (34)
0 1452196040.634662, rstick y (-5), r2 (105)
0 1452196040.644663, rstick y (-5), r2 (145)
0 1452196040.654664, rstick y (-5), r2 (174)
0 1452196040.664664, rstick y (-5), r2 (184)
0 1452196040.684665, rstick y (-5), r2 (177)
0 1452196040.694666, rstick y (-5), r2 (161)
0 1452196040.704666, rstick y (-5), r2 (92)
0 1452196040.714667, rstick y (-5), r2 (45)
0 1452196040.724668, rstick y (-5)
0 1452196043.704838 controller 0 is switched from configuration 0 to 2
Exiting