mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
SDL: Fix SDL1 build (nw)
This commit is contained in:
parent
22abd3cdb8
commit
9998681885
@ -722,9 +722,13 @@ static void sdlinput_register_joysticks(running_machine &machine)
|
||||
{
|
||||
char *joy_name;
|
||||
|
||||
#if (SDLMAME_SDL2)
|
||||
joy = SDL_JoystickOpen(physical_stick);
|
||||
joy_name = remove_spaces(machine, SDL_JoystickName(joy));
|
||||
SDL_JoystickClose(joy);
|
||||
#else
|
||||
joy_name = remove_spaces(machine, SDL_JoystickName(physical_stick));
|
||||
#endif
|
||||
|
||||
devmap_register(&joy_map, physical_stick, joy_name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user