Adding a controller on android and windows

i have been trying to add controller support on my android and windows game for some days now, on windows its not even finishing to compile based on the source code example i found in the cpp-tests and the controller wiki on the cocos site.On android its not crashing or anything but the controllers just arnt working within the game. Is there any good tutorial or checklist on how i can implement the controller?