2018-09-20 08:28:05 +02:00
|
|
|
// Copyright 2018 Citra Emulator Project
|
2017-01-21 16:33:48 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "input_common/sdl/sdl.h"
|
2018-09-20 08:28:05 +02:00
|
|
|
#ifdef HAVE_SDL2
|
|
|
|
#include "input_common/sdl/sdl_impl.h"
|
|
|
|
#endif
|
2017-01-21 16:33:48 +01:00
|
|
|
|
2018-09-20 08:28:05 +02:00
|
|
|
namespace InputCommon::SDL {
|
2017-01-21 16:33:48 +01:00
|
|
|
|
2018-09-20 08:28:05 +02:00
|
|
|
std::unique_ptr<State> Init() {
|
|
|
|
#ifdef HAVE_SDL2
|
|
|
|
return std::make_unique<SDLState>();
|
|
|
|
#else
|
|
|
|
return std::make_unique<NullState>();
|
|
|
|
#endif
|
2017-12-06 05:26:29 +01:00
|
|
|
}
|
2018-09-20 08:28:05 +02:00
|
|
|
} // namespace InputCommon::SDL
|