Enable Xinput by default

On Linux, enable Xinput support by default. The Xinput lightgun driver is the
only reliable+accurate method to use lightguns on Linux, we should enable this
by default to reduce the friction for Linux Lightgun users. This should have no
effect on users of Windows/Mac etc.
This commit is contained in:
Kiall Mac Innes 2019-04-21 12:45:55 -07:00
parent b326f27629
commit 489087f173
2 changed files with 6 additions and 2 deletions

View File

@ -35,7 +35,7 @@
# DONT_USE_NETWORK = 1 # DONT_USE_NETWORK = 1
# USE_QTDEBUG = 1 # USE_QTDEBUG = 1
# NO_X11 = 1 # NO_X11 = 1
# NO_USE_XINPUT = 0 # NO_USE_XINPUT = 1
# FORCE_DRC_C_BACKEND = 1 # FORCE_DRC_C_BACKEND = 1
# DEBUG = 1 # DEBUG = 1

View File

@ -170,7 +170,11 @@ newoption {
} }
if not _OPTIONS["NO_USE_XINPUT"] then if not _OPTIONS["NO_USE_XINPUT"] then
if _OPTIONS["targetos"]=="windows" or _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"]=="asmjs" then
_OPTIONS["NO_USE_XINPUT"] = "1" _OPTIONS["NO_USE_XINPUT"] = "1"
else
_OPTIONS["NO_USE_XINPUT"] = "0"
end
end end
newoption { newoption {