My setup is a gaming PC with numerous controllers and emulators + Steam. Currently it has these:-

js0 - Xbox controller (24C6:581A) - joysticks sometimes controls mouse

js1 - PS4 Dualshock4 red (054C:054C) - doesn't control mouse

js2 - PS4 Dualshock4 white (054C:054C) - doesn't control mouse [identical vendor and product ID]

js3 - PS4 Dualshock4 black (054C:09CC) - touchpad always controls mouse

I have edited two joystick.conf files:-
/usr/share/X11/xorg.conf.d/50-joystick.conf
/etc/X11/xorg.conf.d/51.joystick.conf

to the following:-

```
```Section "InputClass"
Identifier "joystick catchall"
MatchIsJoystick "on"
MatchDevicePath "/dev/input/event*"
Driver "joystick"
# These Two Lines Disable the mouse emulation
Option "StartKeysEnabled" "off"   
Option "StartMouseEnabled" "off" 
EndSection```

```

which is recommended here:-

[Turn off controller from moving mouse](https://askubuntu.com/questions/1000501/turn-off-controller-from-moving-mouse/1180722#1180722)

===

I have 3 questions about this:-

1. Why do the rules seem to only prevent two of the controllers from taking over the mouse+keyboard?
2. Are there any other places the system might keep these rules? This PC started off as Ubuntu Studio and had XfCE installed over it
3. Certain games (e.g. ToeJam& Earl) have stopped detecting the controllers at all since I turned off StartKeysEnabled and StartMouseEnabled. Could it be that these games rely on X treating controllers as mouse+keyboard? And the same games often had two controllers totally overlapping with 2 players controlled by both gamepads - could that be because two of the controllers happen to have identical vendor and product IDs.