diff options
| author | 2026-02-07 13:32:37 -0500 | |
|---|---|---|
| committer | 2026-02-07 13:32:37 -0500 | |
| commit | 8349e95e3e0ea4d3081739e2b8bb5787b9e366ba (patch) | |
| tree | 89c058b1454f3c898fb918dc2ce1c7a2fb701e4b /src/osd/modules/input/input_dinput.cpp | |
| parent | dba6d057f1186642e73eb7fa020aabf9647b163f (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 'src/osd/modules/input/input_dinput.cpp')
| -rw-r--r-- | src/osd/modules/input/input_dinput.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osd/modules/input/input_dinput.cpp b/src/osd/modules/input/input_dinput.cpp index 6f539c2f7fc..900aa4b8eec 100644 --- a/src/osd/modules/input/input_dinput.cpp +++ b/src/osd/modules/input/input_dinput.cpp @@ -107,9 +107,13 @@ Rz Rudder #include "util/corestr.h" #ifdef SDLMAME_WIN32 +#ifdef SDLMAME_SDL3 +#include <SDL3/SDL.h> +#else #include <SDL2/SDL.h> #include <SDL2/SDL_syswm.h> #endif +#endif #include <algorithm> #include <cmath> |
