aboutsummaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorcrueter <crueter@eden-emu.dev>2026-05-17 23:44:57 +0200
committercrueter <crueter@eden-emu.dev>2026-05-17 23:44:57 +0200
commitca6bb3ae1d2805e92aef30a99abb12ec9d6d795e (patch)
treeb7f2f9c98cad9d581e75ba3653774e1cd4a29bd8 /dist
parent50df88106ef5adef4b3a84d2b40ddafd336e7915 (diff)
[cmake, dist] Update udev rule to act on all joysticks, and add install option (#3968)
This is needed for gyro access. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3968 Reviewed-by: Lizzie <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'dist')
-rw-r--r--dist/72-eden-input.rules8
-rw-r--r--dist/72-yuzu-input.rules19
2 files changed, 8 insertions, 19 deletions
diff --git a/dist/72-eden-input.rules b/dist/72-eden-input.rules
new file mode 100644
index 0000000000..b84ed200a3
--- /dev/null
+++ b/dist/72-eden-input.rules
@@ -0,0 +1,8 @@
+# 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-eden-input.rules
+# Consult your distro if this is not the case
+
+KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ENV{ID_INPUT_JOYSTICK}=="1", MODE="0660", TAG+="uaccess"
diff --git a/dist/72-yuzu-input.rules b/dist/72-yuzu-input.rules
deleted file mode 100644
index d64f8b28d7..0000000000
--- a/dist/72-yuzu-input.rules
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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"