Linuxでゲームパッドを使う
ゲームパッド - ArchWiki
$ sudo apt install steam steam-devices
そのまま接続するとスティック操作でマウスが動いてしまうので設定を加える
$ sudo nano etc/X11/xorg.conf.d/51-joystick.conf
code:51-joystick.conf
Section "InputClass"
Identifier "joystick catchall"
MatchIsJoystick "on"
MatchDevicePath "/dev/input/event*"
Driver "joystick"
Option "StartKeysEnabled" "False" #Disable mouse
Option "StartMouseEnabled" "False" #support
EndSection
https://wiki.archlinux.jp/index.php/ゲームパッド#ゲームパッドのマウス操作を無効にする