mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-15 23:06:40 +00:00
(SDL2) Do not restrict the user to the SDL2 input driver
This commit is contained in:
parent
a01e43cc6d
commit
f2a3a4df95
@ -433,20 +433,8 @@ static void *sdl2_gfx_init(const video_info_t *video, const input_driver_t **inp
|
||||
|
||||
sdl2_gfx_set_handles(vid);
|
||||
|
||||
if (input && input_data)
|
||||
{
|
||||
void *sdl_input = input_sdl.init();
|
||||
if (sdl_input)
|
||||
{
|
||||
*input = &input_sdl;
|
||||
*input_data = sdl_input;
|
||||
}
|
||||
else
|
||||
{
|
||||
*input = NULL;
|
||||
*input_data = NULL;
|
||||
}
|
||||
}
|
||||
*input = NULL;
|
||||
*input_data = NULL;
|
||||
|
||||
return vid;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user