# udev rules for the punktfunk streaming host (mirrors Sunshine's 60-sunshine.rules).
#
# Grants the `input` group access to /dev/uinput (virtual X-Box-360 gamepads) and /dev/uhid
# (virtual DualSense via the kernel hid-playstation driver — LED, adaptive triggers, touchpad,
# gyro). `static_node` makes the nodes exist before their modules load.
#
# Install:
#   sudo cp scripts/60-punktfunk.rules /etc/udev/rules.d/
#   sudo usermod -aG input $USER       # then re-login (or reboot)
#   sudo udevadm control --reload-rules && sudo udevadm trigger
KERNEL=="uinput", SUBSYSTEM=="misc", OPTIONS+="static_node=uinput", GROUP="input", MODE="0660", TAG+="uaccess"
KERNEL=="uhid", SUBSYSTEM=="misc", OPTIONS+="static_node=uhid", GROUP="input", MODE="0660", TAG+="uaccess"
