mirror of
https://github.com/SPD13/CitraVR-steam-frame.git
synced 2026-10-25 21:01:46 +01:00
20 lines
458 B
C++
20 lines
458 B
C++
// Copyright Citra Emulator Project / Azahar Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "input_common/sdl/sdl.h"
|
|
#ifdef HAVE_SDL2
|
|
#include "input_common/sdl/sdl_impl.h"
|
|
#endif
|
|
|
|
namespace InputCommon::SDL {
|
|
|
|
std::unique_ptr<State> Init() {
|
|
#ifdef HAVE_SDL2
|
|
return std::make_unique<SDLState>();
|
|
#else
|
|
return std::make_unique<NullState>();
|
|
#endif
|
|
}
|
|
} // namespace InputCommon::SDL
|