mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 21:37:43 +08:00
Be more selective when blacklisting controller touchpads
On Android, the PS4 controller is called "Wireless Controller Touchpad" Fixes https://github.com/libsdl-org/SDL/issues/14294
This commit is contained in:
@@ -189,6 +189,7 @@ static const struct SDL_GamepadBlacklistWords SDL_gamepad_blacklist_words[] = {
|
|||||||
#ifdef SDL_PLATFORM_LINUX
|
#ifdef SDL_PLATFORM_LINUX
|
||||||
{" Motion Sensors", GAMEPAD_BLACKLIST_END}, // Don't treat the PS3 and PS4 motion controls as a separate gamepad
|
{" Motion Sensors", GAMEPAD_BLACKLIST_END}, // Don't treat the PS3 and PS4 motion controls as a separate gamepad
|
||||||
{" IMU", GAMEPAD_BLACKLIST_END}, // Don't treat the Nintendo IMU as a separate gamepad
|
{" IMU", GAMEPAD_BLACKLIST_END}, // Don't treat the Nintendo IMU as a separate gamepad
|
||||||
|
{" Touchpad", GAMEPAD_BLACKLIST_END}, // "Sony Interactive Entertainment DualSense Wireless Controller Touchpad"
|
||||||
|
|
||||||
// Don't treat the Wii extension controls as a separate gamepad
|
// Don't treat the Wii extension controls as a separate gamepad
|
||||||
{" Accelerometer", GAMEPAD_BLACKLIST_END},
|
{" Accelerometer", GAMEPAD_BLACKLIST_END},
|
||||||
@@ -200,9 +201,7 @@ static const struct SDL_GamepadBlacklistWords SDL_gamepad_blacklist_words[] = {
|
|||||||
// The Google Pixel fingerprint sensor, as well as other fingerprint sensors, reports itself as a joystick
|
// The Google Pixel fingerprint sensor, as well as other fingerprint sensors, reports itself as a joystick
|
||||||
{"uinput-", GAMEPAD_BLACKLIST_BEGIN},
|
{"uinput-", GAMEPAD_BLACKLIST_BEGIN},
|
||||||
|
|
||||||
{" TouchPad", GAMEPAD_BLACKLIST_END}, // "SynPS/2 Synaptics TouchPad"
|
{"Synaptics ", GAMEPAD_BLACKLIST_ANYWHERE}, // "Synaptics TM2768-001", "SynPS/2 Synaptics TouchPad"
|
||||||
{" Touchpad", GAMEPAD_BLACKLIST_END}, // "Sony Interactive Entertainment DualSense Wireless Controller Touchpad"
|
|
||||||
{"Synaptics ", GAMEPAD_BLACKLIST_BEGIN}, // "Synaptics TM2768-001"
|
|
||||||
{"Trackpad", GAMEPAD_BLACKLIST_ANYWHERE},
|
{"Trackpad", GAMEPAD_BLACKLIST_ANYWHERE},
|
||||||
{"Clickpad", GAMEPAD_BLACKLIST_ANYWHERE},
|
{"Clickpad", GAMEPAD_BLACKLIST_ANYWHERE},
|
||||||
// "PG-90215 Keyboard", "Usb Keyboard Usb Keyboard Consumer Control", "Framework Laptop 16 Keyboard Module - ISO System Control"
|
// "PG-90215 Keyboard", "Usb Keyboard Usb Keyboard Consumer Control", "Framework Laptop 16 Keyboard Module - ISO System Control"
|
||||||
|
|||||||
Reference in New Issue
Block a user