mirror of
https://notabug.org/litucks/torzu.git
synced 2025-04-24 09:05:13 +00:00
Fixes - https://github.com/NixOS/nixpkgs/issues/374238 Without this Joycons are only detectable/usable when running yuzu/torzu as sudo/root (however sound does not work as sudo/root). Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/106 Co-authored-by: deftdawg <deftdawg@noreply.localhost> Co-committed-by: deftdawg <deftdawg@noreply.localhost>
20 lines
835 B
Plaintext
20 lines
835 B
Plaintext
# 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"
|