From 0eca5701f728f9dbd50f14fd16569d28a27a0085 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 8 Jan 2025 03:27:29 +0100 Subject: [PATCH] Fix some Synaptics touchpads being recognized as gamepads on Linux/*BSD --- platform/linuxbsd/joypad_linux.h | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linuxbsd/joypad_linux.h b/platform/linuxbsd/joypad_linux.h index bf24d8e5a52..20ebd132007 100644 --- a/platform/linuxbsd/joypad_linux.h +++ b/platform/linuxbsd/joypad_linux.h @@ -100,6 +100,7 @@ private: // Only whole words are matched within the controller name string. The match is case-insensitive. const Vector banned_words = { "touchpad", // Matches e.g. "SynPS/2 Synaptics TouchPad", "Sony Interactive Entertainment DualSense Wireless Controller Touchpad" + "synaptics", // Matches e.g. "Synaptics TM2768-001". Depending on Linux kernel version, Synaptics touchpads don't always have "touchpad" in their name. "trackpad", "clickpad", "keyboard", // Matches e.g. "PG-90215 Keyboard", "Usb Keyboard Usb Keyboard Consumer Control"