I have tested this code with my xbox controller, however it prints both joysticks.
It does not seperate the two joysticks.
0, -0.601580858, 0 -1, 0.320322275, 0
Left
0, -0.320322275, 0 -1, -0, 0
Left
0, 0.210943937, 0 -1, 0.210943937, 0
Left
0, 0.460951567, 0 -1, 0.671895504, 0
Left
0, 0.328104496, 0 -1, 1, 0
Left
0, -1, 0 -1, -1, 0
0.664052248, 0, 0 -0.335947752, -1, 0
0.335947752, 0, 0 0, -1, 0
0.257820368, 0, 0 0.257820368, -1, 0
0.476546526, 0, 0 -0.523453474, 1, 0
Right
0.742179632, 0, 0 1, -1, 0
0.49220252, 0, 0 -0.0312509537, 1, 0
0.0312509537, 0, 0 0, 1, 0
Right
0, 0.414044619, 0 1, -0.585955381, 0
Right
0, 0.585955381, 0 1, -0, 0
0.125003815, 0, 0 0.125003815, 1, 0
Right
0.874996185, 0, 0 1, 1, 0
Right
0, 0.507827997, 0 1, 0.507827997, 0
Right
0, 0.460951567, 0 1, 0.968779564, 0
Right
0, 0.0312204361, 0 1, 1, 0
-0.421857357, 0, 0 0.578142643, 1, 0
-0.484389782, 0, 0 0.093752861, 1, 0
Right
0, -0.195287943, 0 1, 0.804712057, 0
-0.093752861, 0, 0 0, 1, 0
Right
0, -0.484389782, 0 1, 0.320322275, 0
Right
0, -0.320322275, 0 1, -0, 0
-0.218726158, 0, 0 0.781273842, -0, 0
-0.335947752, 0, 0 0.44532609, -0, 0
0, -0.679708242, 0 0, -0.679708242, 0
0, -0.320291758, 0 0, -1, 0
0.507827997, 0, 0 0.507827997, -1, 0
Right
0.492172003, 0, 0 1, -1, 0
Right
0, 0.718741417, 0 1, -0.281258583, 0
Right
0, 0.281258583, 0 1, -0, 0
Right
0, 0.695333719, 0 1, 0.695333719, 0
Right
0, 0.304666281, 0 1, 1, 0
-1, 0, 0 0, 1, 0
0, -0.0780968666, 0 0, 0.921903133, 0
Here is the output.