summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/windows.lua
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2026-02-07 13:32:37 -0500
committer arbee <rb6502@users.noreply.github.com>2026-02-07 13:32:37 -0500
commit8349e95e3e0ea4d3081739e2b8bb5787b9e366ba (patch)
tree89c058b1454f3c898fb918dc2ce1c7a2fb701e4b /scripts/src/osd/windows.lua
parentdba6d057f1186642e73eb7fa020aabf9647b163f (diff)
Initial support for SDL3. [R. Belmont, Vas Crabb]
* SDL3 is the default for macOS targets. Linux/Windows can build with OSD=sdl3 while we wait for better distro support for SDL3. Both X11 and Wayland sessions are fully supported on Linux. * SDL3 -sound=sdl supports both input and output. All other video, sound, and input functionality should otherwise be the same for now. SDL 3.4+ multiple keyboard/mouse support is planned.
Diffstat (limited to 'scripts/src/osd/windows.lua')
-rw-r--r--scripts/src/osd/windows.lua25
1 files changed, 22 insertions, 3 deletions
diff --git a/scripts/src/osd/windows.lua b/scripts/src/osd/windows.lua
index ac300261ce8..f65fae4f513 100644
--- a/scripts/src/osd/windows.lua
+++ b/scripts/src/osd/windows.lua
@@ -28,6 +28,12 @@ function maintargetosdoptions(_target,_subtarget)
}
end
+ if _OPTIONS["USE_SDL3"] == "1" then
+ links {
+ "SDL3.dll",
+ }
+ end
+
links {
"comctl32",
"comdlg32",
@@ -42,10 +48,23 @@ end
newoption {
trigger = "USE_SDL",
- description = "Enable SDL sound output",
+ description = "Enable SDL2 sound output",
+ allowed = {
+ { "0", "Disable SDL2 sound output" },
+ { "1", "Enable SDL2 sound output" },
+ },
+}
+
+if not _OPTIONS["USE_SDL"] then
+ _OPTIONS["USE_SDL"] = "0"
+end
+
+newoption {
+ trigger = "USE_SDL3",
+ description = "Enable SDL3 sound output",
allowed = {
- { "0", "Disable SDL sound output" },
- { "1", "Enable SDL sound output" },
+ { "0", "Disable SDL3 sound output" },
+ { "1", "Enable SDL3 sound output" },
},
}