Peripheral support for MOBAs on PC has typically remained exclusive to the tried and tested mouse and keyboard, save for exceptional games like Smite. However, as part of the Aghanim’s Labyrinth: The Continuum Conundrum update, Valve has unexpectedly enabled controller support for Dota 2.
Valve says that anything supported by Steam Input should work, which includes pads from Xbox, PlayStation, as well as the Nintendo Switch Pro and Steam controller. If you're curious enough to try the feature, all heroes should be playable, but how well their kits fit on a controller will undoubtedly vary. We've also provided a guide on how to enable it further down.
It's worth noting, however, that the company specifically describes the feature as “experimental” and doesn't believe that it's quite ready for everyone just yet. Thankfully, you can quickly swap back to mouse and keyboard from controller (or vice versa) at any point during a match.