# punktfunk-client: hidraw access for the seated user's DualSense (SDL's HIDAPI driver
# needs it for touchpad / motion / lightbar / player LEDs / adaptive triggers — without it
# SDL silently degrades to plain evdev, which has none of those). evdev joystick nodes are
# already uaccess-tagged by systemd; hidraw nodes are root-only by default and systemd
# declined a generic gamepad hwdb (systemd#22681), so we ship the rule, steam-devices
# style: the ATTRS match covers USB, the KERNELS match covers Bluetooth.
# DualSense (054c:0ce6)
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ce6", MODE="0660", TAG+="uaccess"
KERNEL=="hidraw*", KERNELS=="*054C:0CE6*", MODE="0660", TAG+="uaccess"
# DualSense Edge (054c:0df2)
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0df2", MODE="0660", TAG+="uaccess"
KERNEL=="hidraw*", KERNELS=="*054C:0DF2*", MODE="0660", TAG+="uaccess"
