mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Restore SDL2_MULTIAPI
This commit is contained in:
parent
00bfd00a43
commit
1f2763cc32
4
makefile
4
makefile
@ -330,6 +330,10 @@ ifdef SDL_LIBVER
|
||||
PARAMS += --SDL_LIBVER='$(SDL_LIBVER)'
|
||||
endif
|
||||
|
||||
ifdef SDL2_MULTIAPI
|
||||
PARAMS += --SDL2_MULTIAPI='$(SDL2_MULTIAPI)'
|
||||
endif
|
||||
|
||||
ifdef SDL_INSTALL_ROOT
|
||||
PARAMS += --SDL_INSTALL_ROOT='$(SDL_INSTALL_ROOT)'
|
||||
endif
|
||||
|
@ -224,6 +224,19 @@ if not _OPTIONS["SDL_LIBVER"] then
|
||||
end
|
||||
end
|
||||
|
||||
newoption {
|
||||
trigger = "SDL2_MULTIAPI",
|
||||
description = "Use couriersud's multi-keyboard patch for SDL 2.1? (this API was removed prior to the 2.0 release)",
|
||||
allowed = {
|
||||
{ "0", "Use single-keyboard API" },
|
||||
{ "1", "Use multi-keyboard API" },
|
||||
},
|
||||
}
|
||||
|
||||
if not _OPTIONS["SDL2_MULTIAPI"] then
|
||||
_OPTIONS["SDL2_MULTIAPI"] = "0"
|
||||
end
|
||||
|
||||
newoption {
|
||||
trigger = "SDL_INSTALL_ROOT",
|
||||
description = "Equivalent to the ./configure --prefix=<path>",
|
||||
|
@ -62,6 +62,11 @@ if _OPTIONS["SDL_LIBVER"]=="sdl2" then
|
||||
defines {
|
||||
"SDLMAME_SDL2=1",
|
||||
}
|
||||
if _OPTIONS["SDL2_MULTIAPI"]=="1" then
|
||||
defines {
|
||||
"SDL2_MULTIAPI",
|
||||
}
|
||||
end
|
||||
else
|
||||
defines {
|
||||
"SDLMAME_SDL2=0",
|
||||
|
Loading…
Reference in New Issue
Block a user