summaryrefslogtreecommitdiffstats
path: root/dist/72-yuzu-input.rules
diff options
context:
space:
mode:
authorHurricanePootis <53066639+HurricanePootis@users.noreply.github.com>2023-12-08 05:12:56 +0100
committerGitHub <noreply@github.com>2023-12-08 05:12:56 +0100
commite92b10f971733d89ce4b0a9ffc782c13114e1eee (patch)
tree1bd231e1b40a564ca4c630a0f6492c63d3dd9197 /dist/72-yuzu-input.rules
parentMerge pull request #12236 from liamwhite/cpu-refactor (diff)
downloadyuzu-e92b10f971733d89ce4b0a9ffc782c13114e1eee.tar
yuzu-e92b10f971733d89ce4b0a9ffc782c13114e1eee.tar.gz
yuzu-e92b10f971733d89ce4b0a9ffc782c13114e1eee.tar.bz2
yuzu-e92b10f971733d89ce4b0a9ffc782c13114e1eee.tar.lz
yuzu-e92b10f971733d89ce4b0a9ffc782c13114e1eee.tar.xz
yuzu-e92b10f971733d89ce4b0a9ffc782c13114e1eee.tar.zst
yuzu-e92b10f971733d89ce4b0a9ffc782c13114e1eee.zip
Diffstat (limited to 'dist/72-yuzu-input.rules')
-rw-r--r--dist/72-yuzu-input.rules19
1 files changed, 19 insertions, 0 deletions
diff --git a/dist/72-yuzu-input.rules b/dist/72-yuzu-input.rules
new file mode 100644
index 000000000..d64f8b28d
--- /dev/null
+++ b/dist/72-yuzu-input.rules
@@ -0,0 +1,19 @@
+# SPDX-FileCopyrightText: 2023 yuzu Emulator Project
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+# Allow systemd-logind to manage user access to hidraw with this file
+# On most systems, this file should be installed to /etc/udev/rules.d/72-yuzu-input.rules
+# Consult your distro if this is not the case
+
+# Switch Pro Controller (USB/Bluetooth)
+KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0660", TAG+="uaccess"
+KERNEL=="hidraw*", KERNELS=="*057e:2009*", MODE="0660", TAG+="uaccess"
+
+# Joy-Con L (Bluetooth)
+KERNEL=="hidraw*", KERNELS=="*057e:2006*", MODE="0660", TAG+="uaccess"
+
+# Joy-Con R (Bluetooth)
+KERNEL=="hidraw*", KERNELS=="*057e:2007*", MODE="0660", TAG+="uaccess"
+
+# Joy-Con Charging Grip (USB)
+KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="200e", MODE="0660", TAG+="uaccess"