From b629df952afe5f03d2abaa9eb3009a382ef42536 Mon Sep 17 00:00:00 2001
From: Myned <dev@bjork.tech>
Date: Sat, 22 Mar 2025 14:46:53 -0500
Subject: [PATCH] udev: disable controller trackpad

---
 options/custom/services/udev.nix | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/options/custom/services/udev.nix b/options/custom/services/udev.nix
index 93325f3..dc340ff 100644
--- a/options/custom/services/udev.nix
+++ b/options/custom/services/udev.nix
@@ -44,6 +44,10 @@ in {
         # ProtoArc EM04
         ENV{ID_USB_SERIAL}=="Compx_2.4G_Receiver", \
           ENV{ID_INPUT_TRACKBALL}="1"
+
+        # https://wiki.archlinux.org/title/Gamepad#Disable_touchpad_acting_as_mouse
+        ATTRS{name}=="Wireless Controller Touchpad", \
+          ENV{LIBINPUT_IGNORE_DEVICE}="1"
       '';
   };
 }