This driver is based on Daniel Ogorchock's driver that is included in https://github.com/DanielOgorchock/linux. I've added proper controller enumeration similar to how it works on Nintendo Switch. DKMS and build scripts are based on https://github.com/atar-axis/xpadneo. This driver was tested on Ubuntu 19.10.
For dual joycon support as one controller you are going to need: https://github.com/DanielOgorchock/joycond
- Ubuntu and derivatives
sudo apt install dkms linux-headers-`uname -r`
git clone https://github.com/mpawlowski7/nxcontrollers.gitcd nxcontrollerssudo ./install.sh
- Load module
sudo modprobe hid_nintendo(or reboot) - Connect controller via USB or Bluetooth,
- Verify that driver is loaded
lsmod | grep 'hid_nintendo'
git pullsudo ./update.sh
- Run
sudo ./uninstall.shto remove all installed versions of hid-nintendo.
To use it in Lutris copy paste path to sdl2/gamecontrollerdb.txt or sdl2/gamecontrollerdb_nx.txt(for reverse Nintendo-like button order) into System options > Show advanced options > SDL2 gamepad mapping