Console controllers

I have a question about something that I've not been able to find out anything about on the internet. Is there a way to use a micro-controller like the Arduino to create and program a third-party controller for a game console, like the xboxes, playstation 4 or the switch- using things like analogue sticks and buttons- because I understand that you would probably be able to program one for a pc with the right software, but I'm not sure about console compatibility.

Google for :
Connect Game Controller to Arduino
Integrate Arduino with Xbox