Skip to content

Commit

Permalink
Merge pull request #56 from kodi-game/remove-sdl
Browse files Browse the repository at this point in the history
Remove SDL driver
  • Loading branch information
garbear authored Oct 12, 2016
2 parents 8a88254 + 1272305 commit 8b8ea38
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 309 deletions.
17 changes: 0 additions & 17 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,6 @@ if("${CORE_SYSTEM_NAME}" STREQUAL "darwin" OR "${CORE_SYSTEM_NAME}" STREQUAL "os
list(APPEND DEPLIBS ${COCOA_LIBRARY})
endif()

# --- SDL ----------------------------------------------------------------------

if(NOT "${CORE_SYSTEM_NAME}" STREQUAL "windows")
find_package(Sdl)

if(SDL_FOUND)
include_directories(${SDL_INCLUDE_DIRS})

add_definitions(-DHAVE_SDL)

list(APPEND JOYSTICK_SOURCES src/api/sdl/JoystickInterfaceSDL.cpp
src/api/sdl/JoystickSDL.cpp)

list(APPEND DEPLIBS ${SDL_LIBRARIES})
endif()
endif()

# --- Linux Joystick API -------------------------------------------------------

check_include_files(linux/joystick.h HAVE_LINUX_JOYSTICK_H)
Expand Down
5 changes: 0 additions & 5 deletions src/api/JoystickManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
#if defined(HAVE_LINUX_JOYSTICK)
#include "linux/JoystickInterfaceLinux.h"
#endif
#if defined(HAVE_SDL)
#include "sdl/JoystickInterfaceSDL.h"
#endif
#if defined(HAVE_COCOA)
#include "cocoa/JoystickInterfaceCocoa.h"
#endif
Expand Down Expand Up @@ -118,8 +115,6 @@ bool CJoystickManager::Initialize(IScannerCallback* scanner)
m_interfaces.push_back(new CJoystickInterfaceLinux);
#elif defined(HAVE_UDEV)
m_interfaces.push_back(new CJoystickInterfaceUdev);
#elif defined(HAVE_SDL)
m_interfaces.push_back(new CJoystickInterfaceSDL);
#endif

// OSX
Expand Down
106 changes: 0 additions & 106 deletions src/api/sdl/JoystickInterfaceSDL.cpp

This file was deleted.

42 changes: 0 additions & 42 deletions src/api/sdl/JoystickInterfaceSDL.h

This file was deleted.

99 changes: 0 additions & 99 deletions src/api/sdl/JoystickSDL.cpp

This file was deleted.

40 changes: 0 additions & 40 deletions src/api/sdl/JoystickSDL.h

This file was deleted.

0 comments on commit 8b8ea38

Please sign in to comment.