You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix trackpads and graphics tablets being recognized as controllers on Linux/*BSD
This commit is contained in:
@@ -374,6 +374,12 @@ void JoypadLinux::open_joypad(const char *p_path) {
|
||||
name = namebuf;
|
||||
}
|
||||
|
||||
for (const String &word : name.to_lower().split(" ")) {
|
||||
if (banned_words.has(word)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (ioctl(fd, EVIOCGID, &inpid) < 0) {
|
||||
close(fd);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user