diff options
author | 2019-04-21 12:45:55 -0700 | |
---|---|---|
committer | 2019-04-21 12:48:51 -0700 | |
commit | 489087f17305887ad975a3a3dd4e3ae7ee986df7 (patch) | |
tree | 6dc72ba5af2af45f4b4051812895260af3bfab78 /scripts/src/osd | |
parent | b326f27629c9a576cd1475ba00c05eeecb57dafa (diff) |
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.
Diffstat (limited to 'scripts/src/osd')
-rw-r--r-- | scripts/src/osd/sdl.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua index c9a63dcb24e..0d5b72e21a6 100644 --- a/scripts/src/osd/sdl.lua +++ b/scripts/src/osd/sdl.lua @@ -170,7 +170,11 @@ newoption { } if not _OPTIONS["NO_USE_XINPUT"] then - _OPTIONS["NO_USE_XINPUT"] = "1" + if _OPTIONS["targetos"]=="windows" or _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"]=="asmjs" then + _OPTIONS["NO_USE_XINPUT"] = "1" + else + _OPTIONS["NO_USE_XINPUT"] = "0" + end end newoption { |