From bc9843c13f27e26266b8b4159a850a9feb1d5e8d Mon Sep 17 00:00:00 2001 From: HurricanePootis Date: Wed, 6 Dec 2023 05:30:44 -0600 Subject: [PATCH] dist: add udev rule to enable user hidraw access --- dist/99-yuzu-input.rules | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 dist/99-yuzu-input.rules diff --git a/dist/99-yuzu-input.rules b/dist/99-yuzu-input.rules new file mode 100644 index 0000000000..8342776c31 --- /dev/null +++ b/dist/99-yuzu-input.rules @@ -0,0 +1,13 @@ +#Allow systemd-login to manage user access to hidraw with this file +#On most systems, this file should be installed to /usr/lib/udev/rule.d/99-yuzu-custominput.rules +#Consult your distro if this is not the case + +#Nintendo's Switch Pro Controller and Pro Controller for Wired and Bluetooth +KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0660", TAG+="uaccess" +KERNEL=="hidraw*", KERNELS=="*057e:2009*", MODE="0660", TAG+="uaccess" +#Nintendo's Left Joy-Con for Wired and Bluetooth +KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2006", MODE="0600", TAG+="uaccess" +KERNEL=="hidraw*", KERNELS=="*057e:2006*", MODE="0600", TAG+="uaccess" +#Nintendo's Right Joy-Con for Wired and Bluetooth +KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2007", MODE="0600", TAG+="uaccess" +KERNEL=="hidraw*", KERNELS=="*057e:2007*", MODE="0600", TAG+="uaccess" \ No newline at end of file