How to play SWTOR on a Controller

How to play Star Wars the Old Republic on an Xbox, Playstation controller or Steamdeck.