From 489087f17305887ad975a3a3dd4e3ae7ee986df7 Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Sun, 21 Apr 2019 12:45:55 -0700 Subject: 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. --- makefile | 2 +- scripts/src/osd/sdl.lua | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 82b72016f11..a9879654264 100644 --- a/makefile +++ b/makefile @@ -35,7 +35,7 @@ # DONT_USE_NETWORK = 1 # USE_QTDEBUG = 1 # NO_X11 = 1 -# NO_USE_XINPUT = 0 +# NO_USE_XINPUT = 1 # FORCE_DRC_C_BACKEND = 1 # DEBUG = 1 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 { -- cgit v1.2.3