sdl.cpp 437 B

12345678910111213141516171819
  1. // Copyright 2018 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "input_common/sdl/sdl.h"
  5. #ifdef HAVE_SDL2
  6. #include "input_common/sdl/sdl_impl.h"
  7. #endif
  8. namespace InputCommon::SDL {
  9. std::unique_ptr<State> Init() {
  10. #ifdef HAVE_SDL2
  11. return std::make_unique<SDLState>();
  12. #else
  13. return std::make_unique<NullState>();
  14. #endif
  15. }
  16. } // namespace InputCommon::SDL