summaryrefslogtreecommitdiffstats
path: root/docs/release/scripts/src/osd/sdl.lua
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2019-05-29 15:56:13 +1000
committer Robbbert <Robbbert@users.noreply.github.com>2019-05-29 15:56:13 +1000
commitf7189bfb0e4bd39156c9bd304b1abca7b8793666 (patch)
treecc7d11cb39e2c4b0b4ce9c92d843577c6b72482e /docs/release/scripts/src/osd/sdl.lua
parent5b1209924a08a10c8ca91ab84fa85f325785be11 (diff)
0.210 Release filestag210
Diffstat (limited to 'docs/release/scripts/src/osd/sdl.lua')
-rw-r--r--docs/release/scripts/src/osd/sdl.lua19
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/release/scripts/src/osd/sdl.lua b/docs/release/scripts/src/osd/sdl.lua
index c9a63dcb24e..9485fcc553c 100644
--- a/docs/release/scripts/src/osd/sdl.lua
+++ b/docs/release/scripts/src/osd/sdl.lua
@@ -170,7 +170,24 @@ 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 {
+ trigger = "NO_USE_XINPUT_WII_LIGHTGUN_HACK",
+ description = "Disable use of Xinput Wii Lightgun Hack",
+ allowed = {
+ { "0", "Enable Xinput Wii Lightgun Hack" },
+ { "1", "Disable Xinput Wii Lightgun Hack" },
+ },
+}
+
+if not _OPTIONS["NO_USE_XINPUT_WII_LIGHTGUN_HACK"] then
+ _OPTIONS["NO_USE_XINPUT_WII_LIGHTGUN_HACK"] = "1"
end
newoption {