Update: Just tried with my Nintendo Switch Pro controller. It works, so the support is there, but it was a little janky. Button mapping didn’t show the button names, just “?”, but an Xbox or Playstation controller may work better. Movement was also janky, but that’s probably because I was using Bluetooth.
In Unix shell scripts 1 is false, so there’s that