[input] added option to disable wgi/xinput to prevent SDL GUIDE hack

This commit is contained in:
xbzk
2026-07-29 13:16:52 -03:00
parent 53a98f9de1
commit 801c472017
4 changed files with 35 additions and 1 deletions
+9 -1
View File
@@ -702,7 +702,15 @@ struct Values {
// Controls
InputSetting<std::array<PlayerInput, 10>> players;
Setting<bool> disable_wgi_xinput{
linkage, false, "disable_wgi_xinput", Category::Controls, Specialization::Default,
// Only read/write disable_wgi_xinput on Windows platforms
#ifdef _WIN32
true
#else
false
#endif
};
Setting<bool> enable_raw_input{
linkage, false, "enable_raw_input", Category::Controls, Specialization::Default,
// Only read/write enable_raw_input on Windows platforms