From 5a079a2d114f96d4847d1ee305d5b7c16eeec50e Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 27 Dec 2025 12:03:39 -0800 Subject: Initial commit --- contrib/SDL-3.2.8/src/hidapi/udev/69-hid.rules | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 contrib/SDL-3.2.8/src/hidapi/udev/69-hid.rules (limited to 'contrib/SDL-3.2.8/src/hidapi/udev') diff --git a/contrib/SDL-3.2.8/src/hidapi/udev/69-hid.rules b/contrib/SDL-3.2.8/src/hidapi/udev/69-hid.rules new file mode 100644 index 0000000..02d6a2c --- /dev/null +++ b/contrib/SDL-3.2.8/src/hidapi/udev/69-hid.rules @@ -0,0 +1,36 @@ +# This is a sample udev file for HIDAPI devices which lets unprivileged +# users who are physically present at the system (not remote users) access +# HID devices. + +# If you are using the libusb implementation of hidapi (libusb/hid.c), then +# use something like the following line, substituting the VID and PID with +# those of your device. + +# HIDAPI/libusb +SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="003f", TAG+="uaccess" + +# If you are using the hidraw implementation (linux/hid.c), then do something +# like the following, substituting the VID and PID with your device. + +# HIDAPI/hidraw +KERNEL=="hidraw*", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="003f", TAG+="uaccess" + +# Once done, optionally rename this file for your application, and drop it into +# /etc/udev/rules.d/. +# NOTE: these rules must have priority before 73-seat-late.rules. +# (Small discussion/explanation in systemd repo: +# https://github.com/systemd/systemd/issues/4288#issuecomment-348166161) +# for example, name the file /etc/udev/rules.d/70-my-application-hid.rules. +# Then, replug your device or run: +# sudo udevadm control --reload-rules && sudo udevadm trigger + +# Note that the hexadecimal values for VID and PID are case sensitive and +# must be lower case. + +# TAG+="uaccess" only gives permission to physically present users, which +# is appropriate in most scenarios. If you require access to the device +# from a remote session (e.g. over SSH), add +# GROUP="plugdev", MODE="660" +# to the end of the udev rule lines, add your user to the plugdev group with: +# usermod -aG plugdev USERNAME +# then log out and log back in (or restart the system). -- cgit v1.2.3